Builds a basic nginx server that proxies incoming SSL calls to a target host (usually another Docker container).
The following environment variables configure nginx:
DOMAIN
: domain in the SSL certificate (default value:www.example.com
)TARGET_PORT
: target port for the reverse proxy (default value:80
)TARGET_HOST
: target host for the reverse proxy (default value:proxyapp
)CLIENT_MAX_BODY_SIZE
: maximum size of client uploads (default value:20M
)
The SSL certificate is generated using a own-ROOT-ca that is available in the
directory /etc/nginx/ca
, you may use Docker volumes to share the CAs with
other containers, so they can trust the installed certificate.
You can get the publicly available docker image at the following location: docker-ssl-proxy.