diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 940593719de..f679f2bc95c 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -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;