Skip to content
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

Custom configuration for both location #45

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

Conversation

Giggiux
Copy link

@Giggiux Giggiux commented Nov 12, 2020

I believe this pull request adds a useful functionality: ability to add nginx customization for both locations.

I needed this because when you use add_header in a location block in Nginx, it undoes all "parent" add_header directives.
So the current server customization is not enough if headers need to be added for all the pages.

In my use case scenario I need to add x-robots-tag for all the pages to disallow search engines to crawl the website in a staging environment.

This should also close #33

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.

allow overrides in nginx configuration
1 participant