Add referrer policy header

This commit is contained in:
Felix Ableitner 2019-04-18 14:45:58 +02:00
parent 408d1cf7f4
commit 1069d95bba

View file

@ -24,6 +24,8 @@ http {
# HTTPS for the next 2 years: (read more on hstspreload.org) # HTTPS for the next 2 years: (read more on hstspreload.org)
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header Referrer-Policy "same-origin";
location / { location / {
proxy_pass http://peertube:9000; proxy_pass http://peertube:9000;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;