NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.3k stars 2.7k forks source link

HSTS Header is added on HTTP hosts - Incorrect implementation of RFC6797 #2360

Open StanvanHoorn opened 2 years ago

StanvanHoorn commented 2 years ago

Checklist

Describe the bug HSTS is added in the server block of the Nginx for both port 80 and 443 resulting in warnings in various online tooling including hstspreload.org. This probably is caused by the fact that the generated Nginx config combines the port 80 and 443 servers. See: #1 - Redirection host template; #2 - Listen config; #3 - HSTS config

Possible solution Make different server config blocks for port 80 and 443, and only include the HSTS config in the one for 443 if enabled.

Nginx Proxy Manager Version v2.9.18

StanvanHoorn commented 1 year ago

Any plans to fix this?

github-actions[bot] commented 9 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

StanvanHoorn commented 9 months ago

As far as I know, this issue still persists

github-actions[bot] commented 4 days ago

Issue is now considered stale. If you want to keep it open, please comment :+1: