praca za proxy
This commit is contained in:
@@ -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=*"]
|
||||
|
@@ -27,6 +27,8 @@ services:
|
||||
"${PORT}",
|
||||
"--log-config",
|
||||
"logging.yml",
|
||||
"--proxy-headers",
|
||||
"--forwarded-allow-ips=*",
|
||||
]
|
||||
volumes:
|
||||
- ./data:/data
|
||||
|
Reference in New Issue
Block a user