Is --proxy-headers applied in the uvicorn CMD in the image? #329
-
I am using python3.11-2023-04-03 image. and wanted to know if "--proxy-headers" is attached while starting the server |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Same question here. |
Beta Was this translation helpful? Give feedback.
-
I think nope, because it depended on what is available to Gunicorn, and that can also be passed to the Uvicorn workers. On the other side, now that Uvicorn supports managing workers with Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image |
Beta Was this translation helpful? Give feedback.
I think nope, because it depended on what is available to Gunicorn, and that can also be passed to the Uvicorn workers.
On the other side, now that Uvicorn supports managing workers with
--workers
, including restarting dead ones, there's no need for Gunicorn. That also means that it's much simpler to build a Docker image from scratch now, I updated the docs to explain it.Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image