From 1069d95bba8638aa10b5c55163cebaf0d11dbd86 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 18 Apr 2019 14:45:58 +0200 Subject: [PATCH] Add referrer policy header --- templates/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/nginx.conf b/templates/nginx.conf index 119d441..61e3e68 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -24,6 +24,8 @@ http { # HTTPS for the next 2 years: (read more on hstspreload.org) add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; + add_header Referrer-Policy "same-origin"; + location / { proxy_pass http://peertube:9000; proxy_set_header X-Real-IP $remote_addr;