FIX: Move Referrer Policy header to right location

This commit is contained in:
Rafael dos Santos Silva 2017-06-28 14:39:54 -03:00
parent b93edc9945
commit 97b6d8664b
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,6 @@ server {
location / {
root $public;
add_header ETag "";
add_header Referrer-Policy 'no-referrer-when-downgrade';
# auth_basic on;
# auth_basic_user_file /etc/nginx/htpasswd;
@ -240,6 +239,7 @@ server {
}
location @discourse {
add_header Referrer-Policy 'no-referrer-when-downgrade';
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;