Sign inSign up

evanshunt/nginx-ssl-proxy

By evanshunt

•Updated about 3 years ago

A Docker container for SSL proxying of another container.

Image
0

1.3K

evanshunt/nginx-ssl-proxy repository overview

⁠SSL proxy

This container runs an SSL proxy in front of a web container on port 80. Use this to enable SSL on your local development environment.

⁠Self-signed certificate

Once the proxy is in place for your application, make sure you set your local machine to trust the self-signed certificate that's served up by the container so you don't get browser errors:

curl -O https://raw.githubusercontent.com/EvansHunt/docker-nginx-ssl-proxy/master/web.crt

sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain web.crt

rm web.crt

⁠SSL your web container by adding these lines to your docker-compose.yml:

proxy:
  image: evanshunt/nginx-ssl-proxy
  ports:
  - "443:443"
  links:
  - "web"

Tag summary

Content type

Image

Digest

sha256:8be43448d…

Size

51.2 MB

Last updated

about 3 years ago

docker pull evanshunt/nginx-ssl-proxy