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
|
RUN pip install --no-cache-dir -r app/requirements.txt
|
||||||
COPY . /app
|
COPY . /app
|
||||||
ENV PYTHONUNBUFFERED=1
|
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}",
|
"${PORT}",
|
||||||
"--log-config",
|
"--log-config",
|
||||||
"logging.yml",
|
"logging.yml",
|
||||||
|
"--proxy-headers",
|
||||||
|
"--forwarded-allow-ips=*",
|
||||||
]
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
|
Reference in New Issue
Block a user