summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-01-24 10:47:09 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-01-24 11:27:08 -0500
commit4ff446e2d41515eaee5e89870e7b6fa85949033c (patch)
tree5fa6b3d0c8b44533e27b80c9337315cdb2bd5696 /nginx
parent5be9bc4f82ac3281267f9d9d500e0591e031e674 (diff)
create an install directory with an index page
Diffstat (limited to 'nginx')
-rw-r--r--nginx/nginx.conf10
1 files changed, 9 insertions, 1 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 94216327..8a05391d 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -150,6 +150,14 @@ http {
return 301 /install;
}
+ location = /install {
+ return 301 /install/cli;
+ }
+
+ location = /web-install {
+ return 301 /install/web;
+ }
+
location = /LICENSE {
return 301 /LICENSE.txt;
}
@@ -223,7 +231,7 @@ http {
internal;
}
- location = /web-install {
+ location = /install/web {
include /etc/nginx/snippets/security-headers-base.conf;
add_header Content-Security-Policy "default-src 'none'; connect-src 'self' https://releases.grapheneos.org/; font-src 'self'; img-src 'self'; manifest-src 'self'; script-src 'self'; style-src 'self'; form-action 'none'; frame-ancestors 'none'; block-all-mixed-content; base-uri 'none'" always;
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;