Docker reverse proxy #3011
luhn
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For those deploying gunicorn apps in Docker, I've packaged up a reverse proxy (nginx) that can easily be placed in front of your gunicorn container: https://github.com/luhn/docker-gunicorn-proxy
Getting started is as simple as linking the containers and passing in a hostname and port:
Behavior can be configured via environment variables—much easier to use in a containerized environment than config files. You can also configure response headers via envvars, which allows setting up CORS, HSTS, etc.
Beta Was this translation helpful? Give feedback.
All reactions