summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2018-04-07 20:25:07 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2018-04-07 20:25:07 +0100
commit2dbea5fc11cdae3522fb63e62f678330448cd62d (patch)
tree6fd73ba1a950e8f4225b7a98458a74adf8966d48 /nginx
parentbbde6e826af96704d73f2fed1785106d6c4ea188 (diff)
downloadpillar-2dbea5fc11cdae3522fb63e62f678330448cd62d.tar.xz
Update nginx configs
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/matrix_kyriasis_com.sls3
-rw-r--r--nginx/theos_kyriasis_com.sls9
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/