[PR #3360] [MERGED] only add hsts header with https. #3685

Closed
opened 2026-02-26 08:31:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3360
Author: @DarioViva42
Created: 12/2/2023
Status: Merged
Merged: 1/8/2024
Merged by: @jc21

Base: developHead: hsts-only-with-https


📝 Commits (1)

  • 289e438 only add hsts header with https.

📊 Changes

6 files changed (+15 additions, -1 deletions)

View changed files

📝 backend/templates/_hsts.conf (+1 -1)
backend/templates/_hsts_map.conf (+3 -0)
📝 backend/templates/_location.conf (+2 -0)
📝 backend/templates/dead_host.conf (+3 -0)
📝 backend/templates/proxy_host.conf (+3 -0)
📝 backend/templates/redirection_host.conf (+3 -0)

📄 Description

fixes https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1005 for more information look at: https://websistent.com/add-the-hsts-header-only-for-https-requests-nginx/

It would be really great if you could check if this solution really works.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3360 **Author:** [@DarioViva42](https://github.com/DarioViva42) **Created:** 12/2/2023 **Status:** ✅ Merged **Merged:** 1/8/2024 **Merged by:** [@jc21](https://github.com/jc21) **Base:** `develop` ← **Head:** `hsts-only-with-https` --- ### 📝 Commits (1) - [`289e438`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/289e438c59ed707f6335404da2e4b15589583075) only add hsts header with https. ### 📊 Changes **6 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/templates/_hsts.conf` (+1 -1) ➕ `backend/templates/_hsts_map.conf` (+3 -0) 📝 `backend/templates/_location.conf` (+2 -0) 📝 `backend/templates/dead_host.conf` (+3 -0) 📝 `backend/templates/proxy_host.conf` (+3 -0) 📝 `backend/templates/redirection_host.conf` (+3 -0) </details> ### 📄 Description fixes https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1005 for more information look at: https://websistent.com/add-the-hsts-header-only-for-https-requests-nginx/ It would be really great if you could check if this solution really works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 08:31:34 +03:00
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#3685
No description provided.