diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-01-05 04:16:42 -0500 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-05 05:34:45 -0500 |
| commit | fe063f50fec346b57453f541308ad5ffa7454398 (patch) | |
| tree | 21589782d7d2b1c08133ebc485fb506e1bc8f71d /nginx/nginx.conf | |
| parent | f9328e24c1b4adf2d6e5f36a471fd504fa8dd8f7 (diff) | |
add foundation for WebUSB-based install page
Diffstat (limited to 'nginx/nginx.conf')
| -rw-r--r-- | nginx/nginx.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index a2ec0406..ca9d3f9e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -223,6 +223,17 @@ http { internal; } + location = /web-install { + include /etc/nginx/snippets/security-headers-base.conf; + add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), xr-spatial-tracking=()" always; + # Feature-Policy is being replaced by Permissions-Policy + add_header Feature-Policy "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; battery 'none'; camera 'none'; display-capture 'none'; document-domain 'none'; encrypted-media 'none'; fullscreen 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture 'none'; publickey-credentials-get 'none'; screen-wake-lock 'none'; sync-xhr 'none'; xr-spatial-tracking 'none'" always; + add_header Cache-Control "public, max-age=1800"; + add_header X-Robots-Tag "none"; + try_files $uri.html =404; + http2_push /grapheneos.css?29; + } + location / { include /etc/nginx/snippets/security-headers.conf; add_header Cache-Control "public, max-age=1800"; |
