FIX: Move Referrer Policy header to right location
This commit is contained in:
parent
b93edc9945
commit
97b6d8664b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue