From 7d2dcc04879d121f5fc583fed3adae2782d1028f Mon Sep 17 00:00:00 2001 From: MichiK <michik@michik.net> Date: Sun, 29 Sep 2019 18:58:23 +0200 Subject: [PATCH] Add www. --- host_vars/gabriel.c3heaven.de | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/host_vars/gabriel.c3heaven.de b/host_vars/gabriel.c3heaven.de index 28faada..c4990c5 100644 --- a/host_vars/gabriel.c3heaven.de +++ b/host_vars/gabriel.c3heaven.de @@ -7,6 +7,7 @@ acmetool_cert_domains: - md.c3heaven.de - sso.c3heaven.de - wiki.c3heaven.de + - www.c3heaven.de nginx_https_sites: - name: "c3heaven.de" @@ -17,6 +18,14 @@ nginx_https_sites: config: "return 301 https://wiki.c3heaven.de$1?$args;" - location: "~ /kanboard(.*)$" config: "return 301 https://kanboard.c3heaven.de$1?$args;" + - name: "www.c3heaven.de" + locations: + - location: "/" + config: "root /var/www/html;" + - location: "~ /wiki(.*)$" + config: "return 301 https://wiki.c3heaven.de$1?$args;" + - location: "~ /kanboard(.*)$" + config: "return 301 https://kanboard.c3heaven.de$1?$args;" - name: "gabriel.c3heaven.de" locations: - location: "/" @@ -129,7 +138,7 @@ nginx_http_locations: nginx_https_default_headers: - 'Strict-Transport-Security "max-age=31536000; includeSubDomains"' - 'X-XSS-Protection "1; mode=block"' - - 'X-Frame-Options "DENY"' + - 'X-Frame-Options "SAMEORIGIN"' - 'X-Content-Type-Options "nosniff"' - 'Referrer-Policy "same-origin"' -- GitLab