[PR #3115] [CLOSED] add forward path prefix to prefix services in a sub path. #3657

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

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3115
Author: @jerry-yuan
Created: 8/12/2023
Status: Closed

Base: developHead: add_forward_path_prefix


📝 Commits (2)

  • 2772489 add forward path prefix to prefix services in a sub path.
  • ff4a6e3 fix eslint problem on migrations

📊 Changes

13 files changed (+82 additions, -5 deletions)

View changed files

backend/migrations/20230811144605_forward_path.js (+42 -0)
📝 backend/schema/endpoints/proxy-hosts.json (+15 -0)
📝 backend/templates/_location.conf (+1 -1)
📝 backend/templates/proxy_host.conf (+1 -0)
📝 docker/rootfs/etc/nginx/conf.d/default.conf (+1 -0)
📝 docker/rootfs/etc/nginx/conf.d/include/proxy.conf (+1 -1)
📝 frontend/js/app/nginx/proxy/form.ejs (+6 -0)
📝 frontend/js/app/nginx/proxy/form.js (+4 -1)
📝 frontend/js/app/nginx/proxy/list/item.ejs (+1 -1)
📝 frontend/js/app/nginx/proxy/location-item.ejs (+6 -0)
📝 frontend/js/i18n/messages.json (+1 -0)
📝 frontend/js/models/proxy-host-location.js (+2 -1)
📝 frontend/js/models/proxy-host.js (+1 -0)

📄 Description

I have opened an issue #3110 that I need to add some path prefix when forwarding requests, in order to proxy a sub dir into a independent domain.

I added a field on proxy host and proxy host's location configurations, which will be the path prefix of proxy_pass.

I am a Java backend developer. This is the first time I am modifying a project that uses Node.js as the backend implementation. If there are any inappropriate modifications, please feel free to correct my work.


🔄 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/3115 **Author:** [@jerry-yuan](https://github.com/jerry-yuan) **Created:** 8/12/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `add_forward_path_prefix` --- ### 📝 Commits (2) - [`2772489`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/2772489f0d2b548621c4b1f1efe2bca3a2d7aa0a) add forward path prefix to prefix services in a sub path. - [`ff4a6e3`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/ff4a6e32dbf623ff10dcad0332011038237e0eb7) fix eslint problem on migrations ### 📊 Changes **13 files changed** (+82 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `backend/migrations/20230811144605_forward_path.js` (+42 -0) 📝 `backend/schema/endpoints/proxy-hosts.json` (+15 -0) 📝 `backend/templates/_location.conf` (+1 -1) 📝 `backend/templates/proxy_host.conf` (+1 -0) 📝 `docker/rootfs/etc/nginx/conf.d/default.conf` (+1 -0) 📝 `docker/rootfs/etc/nginx/conf.d/include/proxy.conf` (+1 -1) 📝 `frontend/js/app/nginx/proxy/form.ejs` (+6 -0) 📝 `frontend/js/app/nginx/proxy/form.js` (+4 -1) 📝 `frontend/js/app/nginx/proxy/list/item.ejs` (+1 -1) 📝 `frontend/js/app/nginx/proxy/location-item.ejs` (+6 -0) 📝 `frontend/js/i18n/messages.json` (+1 -0) 📝 `frontend/js/models/proxy-host-location.js` (+2 -1) 📝 `frontend/js/models/proxy-host.js` (+1 -0) </details> ### 📄 Description I have opened an issue #3110 that I need to add some path prefix when forwarding requests, in order to proxy a sub dir into a independent domain. I added a field on proxy host and proxy host's location configurations, which will be the path prefix of proxy_pass. I am a Java backend developer. This is the first time I am modifying a project that uses Node.js as the backend implementation. If there are any inappropriate modifications, please feel free to correct my work. --- <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:27 +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#3657
No description provided.