summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas Medvedev <medvedevsa97@gmail.com>2024-06-18 00:30:00 +0300
committerStas Medvedev <medvedevsa97@gmail.com>2024-06-18 00:30:00 +0300
commit4afe86505e8ca755ec592bdbd2b17218824f2c16 (patch)
tree6d1a993a37bb1ea2786586f525fa3a908cd7cf52
parent000fec1ce3a60c9b9bc8edede365c825fbe589d8 (diff)
uvicorn proxy headersHEADmaster
-rw-r--r--.vscode/launch.json5
-rw-r--r--Dockerfile2
-rw-r--r--static/footer.html0
-rw-r--r--static/header.html0
4 files changed, 4 insertions, 3 deletions
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
--- a/static/footer.html
+++ /dev/null
diff --git a/static/header.html b/static/header.html
deleted file mode 100644
index e69de29..0000000
--- a/static/header.html
+++ /dev/null