Add Onion-Location Header

Closes #2007

Co-Authored-By: Dawid Potocki <dawid@dawidpotocki.com>
This commit is contained in:
Jonah Aragon 2020-08-06 14:11:47 -05:00
parent 777b0706a8
commit 6a37720bc4
No known key found for this signature in database
GPG Key ID: 6A957C9A9A9429F7

View File

@ -5,6 +5,7 @@ add_header Content-Security-Policy "default-src 'none'; script-src 'self' https:
add_header 'Access-Control-Allow-Origin' '*';
add_header Strict-Transport-Security "max-age=31557600; includeSubDomains; preload";
add_header Alt-Svc 'h2="privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion:443"; ma=86400; persist=1';
add_header Onion-Location http://www.privacy2zbidut4m4jyj3ksdqidzkw3uoip2vhvhbvwxbqux5xy5obyd.onion$request_uri always;
add_header Expect-CT 'max-age=86400, enforce';
add_header Referrer-Policy "strict-origin";
add_header Feature-Policy "geolocation none;midi none;notifications none;push none;sync-xhr none;microphone none;camera none;magnetometer none;gyroscope none;speaker self;vibrate none;fullscreen self;payment none;";