From 4afe86505e8ca755ec592bdbd2b17218824f2c16 Mon Sep 17 00:00:00 2001 From: Stas Medvedev Date: Tue, 18 Jun 2024 00:30:00 +0300 Subject: uvicorn proxy headers --- .vscode/launch.json | 5 +++-- Dockerfile | 2 +- static/footer.html | 0 static/header.html | 0 4 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 static/footer.html delete mode 100644 static/header.html diff --git a/.vscode/launch.json b/.vscode/launch.json index 93a8c43..c1fed22 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -24,9 +24,10 @@ "--log-config", "./log_config.json", "--workers", - "1" + "1", "--proxy-headers" ], - "console": "integratedTerminal" + "console": "integratedTerminal", + "justMyCode": false }, { "name": "celery", diff --git a/Dockerfile b/Dockerfile index bd7f189..b2c4145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ COPY . /app WORKDIR /app RUN pip install -r ./requirements.txt -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--log-config", "./log_config.json"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--log-config", "./log_config.json", "--proxy-headers"] \ No newline at end of file diff --git a/static/footer.html b/static/footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/static/header.html b/static/header.html deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3