Fixes
Build and Push Docker Image / build-and-push (push) Successful in 14s

This commit is contained in:
ciomek committed 2026-08-24 22:25:09 +02:00
1 parent c479862c0e
commit 479a98c40f
2 files changed
+10 -3

No files matched your search

+8 -1
View File
@@ -19,8 +19,15 @@ async def lifespan(app: FastAPI):
limiter = Limiter(key_func=lambda request: request.client.host)
docs_url = "/docs" if settings.web.show_docs else None
redoc_url = "/redoc" if settings.web.show_docs else None
openapi_url = "/openapi.json" if settings.web.show_docs else None
app = FastAPI(lifespan=lifespan, docs_url=docs_url)
app = FastAPI(
lifespan=lifespan,
docs_url=docs_url,
redoc_url=redoc_url,
openapi_url=openapi_url,
)
app.state.limiter = limiter
app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
+2 -2
View File
@@ -1,9 +1,9 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
class JWTRequest(BaseModel):
username: str
password: str
password: str = Field(max_length=256)
class JWTResponse(BaseModel):