mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-16 11:38:04 +00:00
_hsts_map.conf defined $hsts_header with the host's own value in every host config. A map is global to nginx, so one definition won for all hosts and the "HSTS Sub-domains" switch of the others was ignored. Define two fixed maps instead and let _hsts.conf pick one per host. They get new names, so configs generated before this change, which still define $hsts_header, can't override them. The maps keep HSTS limited to https. Fixes #5947