[PR #1081] [MERGED] Vipergts450 custom location patch #3361

Closed
opened 2026-02-26 07:39:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/1081
Author: @vipergts450
Created: 5/8/2021
Status: Merged
Merged: 6/7/2021
Merged by: @jc21

Base: developHead: vipergts450-custom_location-patch


📝 Commits (8)

📊 Changes

2 files changed (+54 additions, -3 deletions)

View changed files

📝 backend/internal/nginx.js (+18 -3)
📝 backend/templates/_location.conf (+36 -0)

📄 Description

Possibly resolves jc21#148 jc21#590 but needs a lot of testing as I roughed this together. Probably can replace the top block with a modified
include conf.d/include/proxy.conf;

Allows custom locations to follow the rules set on the primary page such as Websockets, forcing SSL, HSTS, etc.

Made a couple of amendments to /backend/templates/_location.conf and /backend/internal/nginx.js to allow the custom location templates to have includes which should flesh out their configs and follow the settings of the main configuration page. Needs a lot of testing.


🔄 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/1081 **Author:** [@vipergts450](https://github.com/vipergts450) **Created:** 5/8/2021 **Status:** ✅ Merged **Merged:** 6/7/2021 **Merged by:** [@jc21](https://github.com/jc21) **Base:** `develop` ← **Head:** `vipergts450-custom_location-patch` --- ### 📝 Commits (8) - [`60347a9`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/60347a90e98cce31343fbaae9178b1f8aa5332ef) Update _location.conf - [`a3b896f`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/a3b896fa70b5d2d682421aca9b2e33d08ba952e0) Update _location.conf - [`e4e94d5`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/e4e94d5be067ebac41f76b2f4156d25c06770bc2) Update nginx.js - [`6a46e88`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/6a46e88f8f828609c0e2423e77f9c82410145a13) Fix renderLocations to accept more parameters from host - [`4c76803`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/4c76803f13176bc6a11f64bec4f90f6089068e51) Rearrange _location.conf template - [`f26df7d`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/f26df7d9bb9a6fb148f4cb2b2dc29c15de2d76fb) Update nginx.js - [`ca1ea04`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/ca1ea042b20a7faa81a276dba1599e5696d8158f) Update nginx.js - [`69ee6b1`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/69ee6b1699f9674df3c27559b74286da9c0e0fa4) Update nginx.js ### 📊 Changes **2 files changed** (+54 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/nginx.js` (+18 -3) 📝 `backend/templates/_location.conf` (+36 -0) </details> ### 📄 Description Possibly resolves jc21#148 jc21#590 but needs a lot of testing as I roughed this together. Probably can replace the top block with a modified `include conf.d/include/proxy.conf;` Allows custom locations to follow the rules set on the primary page such as Websockets, forcing SSL, HSTS, etc. Made a couple of amendments to `/backend/templates/_location.conf` and `/backend/internal/nginx.js` to allow the custom location templates to have includes which should flesh out their configs and follow the settings of the main configuration page. Needs a lot of testing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 07:39:01 +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#3361
No description provided.