Skip to content

All vhosts redirect to https #20

@maxkueng

Description

@maxkueng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions