[GH-ISSUE #4471] Strange HSTS configuration #2860

Open
opened 2026-02-26 07:37:01 +03:00 by kerem · 1 comment
Owner

Originally created by @Asteliks on GitHub (Apr 3, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4471

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
When testing the SSL with online tools I'm getting neggative points for the HSTS configuration. Online tools used:

Image

Image

Strange HSTS configuration. W

Nginx Proxy Manager Version
v2.12.3 © 2024 jc21.com. Theme by Tabler

To Reproduce
Steps to reproduce the behavior:

  1. Set up a proxy host

Image

Image

  1. test your website with the tools mentioned above
  2. See error

Expected behavior
Enabling HSTS should not give an "Server sent invalid HSTS policy." error.

Operating System
TrueNAS SCALE 25.04 Fangtooth
Linux Kernel 6.12.15
Docker Engine 27.5.0

Originally created by @Asteliks on GitHub (Apr 3, 2025). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4471 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** When testing the SSL with online tools I'm getting neggative points for the HSTS configuration. Online tools used: - https://www.ssllabs.com/index.html ![Image](https://github.com/user-attachments/assets/35c44b60-b2ee-4525-be43-901f405c42c4) - https://developer.mozilla.org/en-US/observatory/ ![Image](https://github.com/user-attachments/assets/c0ecbd76-e945-4b3f-9bfc-4468a9f7fd5d) Strange HSTS configuration. W **Nginx Proxy Manager Version** v2.12.3 © 2024 [jc21.com](https://jc21.com/?utm_source=nginx-proxy-manager). Theme by [Tabler](https://tabler.github.io/?utm_source=nginx-proxy-manager) **To Reproduce** Steps to reproduce the behavior: 1. Set up a proxy host ![Image](https://github.com/user-attachments/assets/07d5c825-6404-4b1b-9b84-0f84ac090654) ![Image](https://github.com/user-attachments/assets/2d02eb00-337f-4ae3-9354-8e8353281002) 2. test your website with the tools mentioned above 3. See error **Expected behavior** Enabling HSTS should not give an "Server sent invalid HSTS policy." error. **Operating System** TrueNAS SCALE 25.04 Fangtooth Linux Kernel 6.12.15 Docker Engine 27.5.0
Author
Owner

@derRichter commented on GitHub (Sep 18, 2025):

same here

<!-- gh-comment-id:3306698286 --> @derRichter commented on GitHub (Sep 18, 2025): same here
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2860
No description provided.