LOLINTERNETZ / vscodeoffline

Enables Visual Studio Code's extension gallery to be used in offline (air-gapped) environments. Or, run your own gallery!
https://hub.docker.com/u/lolinternet
MIT License
95 stars 28 forks source link

support overriding SSL-related arguments to gunicorn #40

Closed maxtruxa closed 1 year ago

maxtruxa commented 1 year ago

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.