Skip to content

A simple nginx proxy behind a self-generated & self-signed SSL certificate (local HTTPS).

License

Notifications You must be signed in to change notification settings

standout/docker-dev-ssl-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker SSL Proxy for Local Development

A simple nginx proxy behind a self-generated & self-signed SSL certificate, with included support for WebSocket proxying.

For production usage, you may want to consider using LetsEncrypt w/ Docker https://github.com/linuxserver/docker-swag.

Building

Note: Building this package creates a new SSL certificate automatically.

docker build -t docker-dev-ssl-proxy .

Running

Be sure to change PROXY_ADDRESS to wherever you are proxying to.

docker run --net=host -e PROXY_ADDRESS="http://localhost:8080" docker-dev-ssl-proxy

Then navigate to https://localhost in your browser.

Note that WebSocket proxying is set to the /socket.io path. At this time, you'll need to update virtual-site.template manually if you wish to change this path.

Also, note the included docker-compose.yml file if you wish to use Docker Compose.

Additional reading can be found here: Local SSL (A Docker-based local HTTPS server).

About

A simple nginx proxy behind a self-generated & self-signed SSL certificate (local HTTPS).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%