Skip to content

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jebabin
Copy link

@jebabin jebabin commented Apr 10, 2023

This allow to customise the ___location / of proxy blocks

@nginxproxymanagerci
Copy link

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
Copy link

I think the #2899 is a complimentary to this one.

@jebabin
Copy link
Author

jebabin commented Aug 29, 2023

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

Copy link

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

@github-actions github-actions bot added the stale label Apr 14, 2024
@m-thalmann
Copy link

m-thalmann commented Mar 26, 2025

I would need this too! Any plans of merging this @ maintainers?

@m-thalmann
Copy link

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

@github-actions github-actions bot removed the stale label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants