Skip to content

Custom configuration for both location - #45

Open
Giggiux wants to merge 1 commit into
gatsbyjs:masterfrom
Giggiux:master
Open

Custom configuration for both location#45
Giggiux wants to merge 1 commit into
gatsbyjs:masterfrom
Giggiux:master

Conversation

@Giggiux

@Giggiux Giggiux commented Nov 12, 2020

Copy link
Copy Markdown

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