praca za proxy

This commit is contained in:
Mateusz Gruszczyński
2025-10-06 09:47:26 +02:00
parent 0b010e8bef
commit 2a281f6b44
2 changed files with 3 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ RUN apt-get update && apt-get install -y build-essential libmaxminddb0 libmaxmin
RUN pip install --no-cache-dir -r app/requirements.txt
COPY . /app
ENV PYTHONUNBUFFERED=1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--log-config", "logging.yml"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--log-config", "logging.yml", "--proxy-headers", "--forwarded-allow-ips=*"]

View File

@@ -27,6 +27,8 @@ services:
"${PORT}",
"--log-config",
"logging.yml",
"--proxy-headers",
"--forwarded-allow-ips=*",
]
volumes:
- ./data:/data