Also on github:
https://github.com/donuk/docker-sslproxy
This attempts to auto-configure an ssl proxy using caddy, it's basically a wrapper around https://hub.docker.com/_/caddy but can be configured entirely with environment variables which I find useful.
To proxy http://example.com and make it visible at https://my-domain.com.
docker run -p 443:443 -p 80:80 -v $PWD/persisted-ssl-data:/data -e BACKEND=example.com DOMAIN=my-domain.com --rm donuk/sslproxy
The SSL configuration will only work if the container is accessible at my-domain.com, otherwise this will fail to boot. I should add a failover to self signed SSL really, but that's a job for later. This is still a work in progress although it works for my purposes.
Content type
Image
Digest
sha256:b30c8fd65…
Size
22.6 MB
Last updated
5 months ago
docker pull donuk/sslproxy