From 4ff446e2d41515eaee5e89870e7b6fa85949033c Mon Sep 17 00:00:00 2001
From: Daniel Micay
Date: Sun, 24 Jan 2021 10:47:09 -0500
Subject: [PATCH] create an install directory with an index page
---
nginx/nginx.conf | 10 ++-
static/404.html | 2 +-
static/articles/grapheneos-servers.html | 2 +-
static/articles/index.html | 4 +-
static/articles/server-traffic-shaping.html | 2 +-
...sitewide-advertising-industry-opt-out.html | 2 +-
static/build.html | 4 +-
static/contact.html | 2 +-
static/donate.html | 2 +-
static/faq.html | 11 +--
static/features.html | 2 +-
static/index.html | 4 +-
static/{install.html => install/cli.html} | 10 +--
static/install/index.html | 71 +++++++++++++++++++
static/{web-install.html => install/web.html} | 14 ++--
static/pdfviewer-privacy-policy.html | 2 +-
static/releases.html | 4 +-
static/sitemap.xml | 10 ++-
static/source.html | 2 +-
static/usage.html | 2 +-
20 files changed, 123 insertions(+), 39 deletions(-)
rename static/{install.html => install/cli.html} (98%)
create mode 100644 static/install/index.html
rename static/{web-install.html => install/web.html} (96%)
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;
diff --git a/static/404.html b/static/404.html
index d08de305..ba9adb61 100644
--- a/static/404.html
+++ b/static/404.html
@@ -31,7 +31,7 @@
- GrapheneOS
- Features
- - Install
+ - Install
- Build
- Usage
- FAQ
diff --git a/static/articles/grapheneos-servers.html b/static/articles/grapheneos-servers.html
index a8ebd2be..fb305a26 100644
--- a/static/articles/grapheneos-servers.html
+++ b/static/articles/grapheneos-servers.html
@@ -33,7 +33,7 @@
- GrapheneOS
- Features
- - Install
+ - Install
- Build
- Usage
- FAQ
diff --git a/static/articles/index.html b/static/articles/index.html
index fb5c7d69..829c9bc6 100644
--- a/static/articles/index.html
+++ b/static/articles/index.html
@@ -33,7 +33,7 @@
- GrapheneOS
- Features
- - Install
+ - Install
- Build
- Usage
- FAQ
@@ -52,7 +52,7 @@
- Features
- - Install
+ - Install
- Build
- Usage
- FAQ
diff --git a/static/articles/server-traffic-shaping.html b/static/articles/server-traffic-shaping.html
index b19683ff..e03723df 100644
--- a/static/articles/server-traffic-shaping.html
+++ b/static/articles/server-traffic-shaping.html
@@ -33,7 +33,7 @@
- GrapheneOS
- Features
- - Install
+ - Install
- Build
- Usage
- FAQ
diff --git a/static/articles/sitewide-advertising-industry-opt-out.html b/static/articles/sitewide-advertising-industry-opt-out.html
index e6942452..91e87bec 100644
--- a/static/articles/sitewide-advertising-industry-opt-out.html
+++ b/static/articles/sitewide-advertising-industry-opt-out.html
@@ -33,7 +33,7 @@
- See the install guide for information on how to use the
+
See the install page for information on how to use the
factory images. See the usage guide section on
sideloading updates for information on how to use the update packages.
diff --git a/static/contact.html b/static/contact.html
index dd0eb5c5..ddb29653 100644
--- a/static/contact.html
+++ b/static/contact.html
@@ -33,7 +33,7 @@