From 2dbea5fc11cdae3522fb63e62f678330448cd62d Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 7 Apr 2018 20:25:07 +0100 Subject: Update nginx configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nginx/matrix_kyriasis_com.sls | 3 --- nginx/theos_kyriasis_com.sls | 9 +++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/nginx/matrix_kyriasis_com.sls b/nginx/matrix_kyriasis_com.sls index 127396e..864251f 100644 --- a/nginx/matrix_kyriasis_com.sls +++ b/nginx/matrix_kyriasis_com.sls @@ -37,9 +37,6 @@ nginx: # https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security - add_header: 'Strict-Transport-Security "max-age=31536000"' - # Tell browsers not to render the page inside a frame, and avoid clickjacking. - - add_header: X-Frame-Options SAMEORIGIN - # Tell browsers to not try to auto-detect the Content-Type. - add_header: X-Content-Type-Options nosniff diff --git a/nginx/theos_kyriasis_com.sls b/nginx/theos_kyriasis_com.sls index 23b678d..aad03ec 100644 --- a/nginx/theos_kyriasis_com.sls +++ b/nginx/theos_kyriasis_com.sls @@ -59,15 +59,16 @@ nginx: - location /~kyrias: - alias: /home/kyrias/public_html/ - index: index.html - - try_files: $uri $uri.html $uri/ =404 - - autoindex: 'on' - expires: modified +24h - location = /~kyrias/journal/10-mercurian-pronouns.html: - return: '301 https://web.archive.org/web/https://theos.kyriasis.com/~kyrias/journal/10-mercurian-pronouns.html' + - location ^~ /~kyrias/static: + - alias: /home/kyrias/code/kyrias-website/kyrias_website/static/ + - expires: +30d - - location ~ \.(js|css|png): - - expires: modified +7d + - location ^~ /~kyrias/d: + - autoindex: 'on' - location /~xanadu: - alias: /home/xanadu/public_html/ -- cgit v1.2.3-70-g09d2