- 
  Notifications
 
You must be signed in to change notification settings  - Fork 3.4k
 
Allow to include custom configuration in the location / of proxy blocks #2816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Docker Image for build 1 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-2816
Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.
 
 
 
 webysther
 
 
 
 commented
 May 8, 2023 
 
 
 
I think the #2899 is a complimentary to this one.
I think the #2899 is a complimentary to this one.
Unless I misunderstand the {{id}} things, It’s different as your patch allow a custom file per proxy entry while mine allow to have a custom config global to all proxy entries.
custom config per proxy can be done via GUI.
My use case is for example to customize the logging with if conditions (which can’t be done at an higher level of config) globally for all proxies
PR is now considered stale. If you want to keep it open, please comment 👍
I would need this too! Any plans of merging this @ maintainers?
 
 
 
 m-thalmann
 
 
 
 commented
 Apr 10, 2025 
 
 
 
For anyone needing this because you want to set headers for all proxy hosts you can use the following as a workaround:
data/nginx/custom/server_proxy.conf:
more_set_headers "X-Robots-Tag: noindex, nofollow, nosnippet, noarchive"; # just set whatever header you want
Source: https://github.com/openresty/headers-more-nginx-module?tab=readme-ov-file#more_set_headers
This allow to customise the location / of proxy blocks