aboutsummaryrefslogtreecommitdiff
path: root/installation
diff options
context:
space:
mode:
authorshibayashi <shibayashi@cypherpunk.observer>2018-08-29 19:00:40 +0200
committershibayashi <shibayashi@cypherpunk.observer>2018-08-29 19:00:40 +0200
commitd035566116a769b8c5de5f5e9382cb4c50f0d163 (patch)
treea944100cc5efda1ecb994fbd8ddee27c0a2b9ef3 /installation
parent64388c420a782fecf8cc51c14a353a9e7ebffc00 (diff)
downloadpleroma-d035566116a769b8c5de5f5e9382cb4c50f0d163.tar.gz
installation/pleroma.nginx: Add 'always' to the security headers, so that they are included regardless of the status code
Diffstat (limited to 'installation')
-rw-r--r--installation/pleroma.nginx16
1 files changed, 8 insertions, 8 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
index a333d116c..aaf620de2 100644
--- a/installation/pleroma.nginx
+++ b/installation/pleroma.nginx
@@ -71,16 +71,16 @@ server {
}
# stop removing lines here.
- add_header X-XSS-Protection "1; mode=block";
- add_header X-Permitted-Cross-Domain-Policies none;
- add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- add_header Referrer-Policy same-origin;
- add_header X-Download-Options noopen;
- add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; form-action 'self'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self' wss://example.tld; upgrade-insecure-requests;";
+ add_header X-XSS-Protection "1; mode=block" always;
+ add_header X-Permitted-Cross-Domain-Policies "none" always;
+ add_header X-Frame-Options "DENY" always;
+ add_header X-Content-Type-Options "nosniff" always;
+ add_header Referrer-Policy "same-origin" always;
+ add_header X-Download-Options "noopen" always;
+ add_header Content-Security-Policy "default-src 'none'; base-uri 'self'; form-action 'self'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self' wss://example.tld; upgrade-insecure-requests;" always;
# Uncomment this only after you get HTTPS working.
- # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
+ # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;