From d6e637bf827ab6cc47417f39bcd30499f96b7077 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 19 May 2025 18:44:22 +0200 Subject: [PATCH] fix: increased timeout --- Dockerfile | 2 +- app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73710f1..a44f7d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN pip install 'uvicorn[standard]' ENV ENV=DEV EXPOSE 8000 -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--timeout-keep-alive", "600", "--limit-max-requests", "0"] # Install curl RUN apt-get update && apt-get install -y curl && apt-get clean diff --git a/app/main.py b/app/main.py index 8bd37c9..fb31ae0 100644 --- a/app/main.py +++ b/app/main.py @@ -5,7 +5,7 @@ from validate_email import validate_email app = FastAPI( title="MailConfirm API", description="API for telegram bot for confirming emails.", - version="0.1.0", + version="0.1.1", docs_url="/", redoc_url=None, debug=False,