Skip to content

Force SSL missing when using Custom locations #228

@crawc

Description

@crawc

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    YES, pulled today.

  • Are you sure you're not using someone else's docker image?
    Yes, jc21/nginx-proxy-manager:latest

  • If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? Not useing Lets Encrypt, but using custom SSL certs.

Describe the bug

  • A clear and concise description of what the bug is.
    After adding a Proxy host using a custom SSL cert (I don't think this matters, but might) with the Force SSL option enabled the site redirects a expected, but when I add a Custom location, with Force SSL still enabled the redirection for HTTP to HTTPS no longer works or these lines are removed.

# Force SSL
include conf.d/include/force-ssl.conf;

These line can be be added back using the Advanced tab as a workaround. It seems the Force SSL is skipped when a Custom location is being used.

  • What version of Nginx Proxy Manager is reported on the login page?
    v2.0.14

To Reproduce
Steps to reproduce the behavior:

  1. Add a new Proxy host with Force SSL enabled.
  2. Check the generated config file to confirm it has the force SSL lines. data/nginx/proxy_host/1.conf
  3. Add a Custom location.
  4. Check the generated config file to confirm it has the force SSL lines are now missing.

Expected behavior
To continue to include the force-ssl.conf file when a custom location is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions