When HTTPS-termination is done by a reverse proxy (Caddy, Nginx, etc.), it's nice to be able to tell gunicorn to serve the page via HTTP instead of HTTPS.
With this change you can run vscgallery with something like -e BIND=0.0.0.0:80 -e SSLARGS= to achieve that.
Essentially --certfile and --keyfile are pulled out into an additional env var (SSLARGS), allowing users to override the arguments. If the env var isn't touched, container behavior is identical to before.
When HTTPS-termination is done by a reverse proxy (Caddy, Nginx, etc.), it's nice to be able to tell gunicorn to serve the page via HTTP instead of HTTPS. With this change you can run vscgallery with something like
-e BIND=0.0.0.0:80 -e SSLARGS=
to achieve that.Essentially
--certfile
and--keyfile
are pulled out into an additional env var (SSLARGS
), allowing users to override the arguments. If the env var isn't touched, container behavior is identical to before.