[GH-ISSUE #2412] Add option to insert custom directives outside of server-blocks #1693

Closed
opened 2026-02-26 07:32:04 +03:00 by kerem · 2 comments
Owner

Originally created by @EliasStar on GitHub (Nov 18, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2412

Is your feature request related to a problem? Please describe.
Currently setting up OnlyOffice Document Server, which requires some custom directives outside the server-block. In this case the map directives can only be used in the http-block. However there are serveral other cases where custom directives outside of server-blocks are useful.

Describe the solution you'd like
Text fields for entering custom directives (like the one under "Advanced" in "Edit Proxy Host") which get inserted outside of the server-blocks. This could be a single text field for inside http and another for global directives, both located in "Settings".

Describe alternatives you've considered
The directives for http could also be seperate for each proxy host. This would have the benefit of being able to group the directives with the proxy host for which they are needed. Additionally they could be stored in the proxy host config files, which would make implementing trivial (just copy paste existing custom directives for server-blocks 🤔). In the UI the "Advanced" tab could simply be extended.

Additional context
Hope this issue isn't a duplicate. I spent a considerable amount searching through the issues, however couldn't find an already existing issue.

Originally created by @EliasStar on GitHub (Nov 18, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2412 **Is your feature request related to a problem? Please describe.** Currently setting up OnlyOffice Document Server, which requires some [custom directives](https://github.com/ONLYOFFICE/document-server-proxy/blob/master/nginx/proxy-to-virtual-path.conf) outside the `server`-block. In this case the `map` directives can only be used in the `http`-block. However there are serveral other cases where custom directives outside of `server`-blocks are useful. **Describe the solution you'd like** Text fields for entering custom directives (like the one under "Advanced" in "Edit Proxy Host") which get inserted outside of the `server`-blocks. This could be a single text field for inside `http` and another for global directives, both located in "Settings". **Describe alternatives you've considered** The directives for `http` could also be seperate for each proxy host. This would have the benefit of being able to group the directives with the proxy host for which they are needed. Additionally they could be stored in the proxy host config files, which would make implementing trivial (just copy paste existing custom directives for `server`-blocks 🤔). In the UI the "Advanced" tab could simply be extended. **Additional context** Hope this issue isn't a duplicate. I spent a considerable amount searching through the issues, however couldn't find an already existing issue.
kerem 2026-02-26 07:32:04 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1925539746 --> @github-actions[bot] commented on GitHub (Feb 4, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2742069724 --> @github-actions[bot] commented on GitHub (Mar 21, 2025): Issue was closed due to inactivity.
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#1693
No description provided.