From b7952c7ce0128dc3e0085002f090fa6885cba379 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 18 Jun 2021 00:55:51 -0400 Subject: [PATCH] add element.grapheneos.org domain --- nginx/nginx.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 412cf54..19e90d4 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -78,12 +78,22 @@ http { root /var/empty; - return 301 https://matrix.grapheneos.org$request_uri; + return 301 https://$host$request_uri; } server { listen 443 ssl http2 backlog=4096; listen [::]:443 ssl http2 backlog=4096; + server_name element.grapheneos.org; + + root /usr/share/webapps/element; + + include snippets/security-headers.conf; + } + + server { + listen 443 ssl http2; + listen [::]:443 ssl http2; server_name matrix.grapheneos.org; root /var/empty;