forked from nginx-proxy/nginx-proxy
-
Notifications
You must be signed in to change notification settings - Fork 16
All vhosts redirect to https #20
Copy link
Copy link
Open
Description
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_HOSTandLETSENCRYPT_EMAILare present, automatically obtain a certificate and enable the https redirect.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels