I switched from jwilder/nginx-proxy to dmp1ce/nginx-proxy-letsencrypt and it works really great. Thanks!
But I've noticed that all requests are now redirected to https regardless of whether the LETSENCRYPT_HOST variable is set on the backend container. This makes impossible to have non-https sites.
Is this behavior intentional? jwilder/nginx-proxy only redirects to https if there is a key and a certificate available. I think it would be nice to keep this functionality and only enable the https redirect if there key and certificate are present.
My suggestion is:
- By default serve over http without redirect
- If the .key and .crt files are present, enable the https redirect
- If
LETSENCRYPT_HOST and LETSENCRYPT_EMAIL are present, automatically obtain a certificate and enable the https redirect.
I switched from jwilder/nginx-proxy to dmp1ce/nginx-proxy-letsencrypt and it works really great. Thanks!
But I've noticed that all requests are now redirected to https regardless of whether the
LETSENCRYPT_HOSTvariable is set on the backend container. This makes impossible to have non-https sites.Is this behavior intentional? jwilder/nginx-proxy only redirects to https if there is a key and a certificate available. I think it would be nice to keep this functionality and only enable the https redirect if there key and certificate are present.
My suggestion is:
LETSENCRYPT_HOSTandLETSENCRYPT_EMAILare present, automatically obtain a certificate and enable the https redirect.