Commit 05050645 authored by Ai-Sasit's avatar Ai-Sasit

update https proxy

parent 3e2720f0
......@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./server /code/server
CMD ["uvicorn", "server.core:app", "--host", "0.0.0.0", "--port", "5000"]
CMD ["uvicorn", "server.core:app","--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
......@@ -5,7 +5,7 @@ services:
container_name: easybistro-api
build: .
ports:
- "5000:80"
- "80:80"
depends_on:
- mongodb
......
import uvicorn
if __name__ == "__main__":
uvicorn.run("server.core:app", host="0.0.0.0", reload=True)
\ No newline at end of file
uvicorn.run("server.core:app", host="0.0.0.0", reload=True, proxy_headers=True)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment