From c9717043bbbdf40c64caaac188baf2125745f7b8 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 25 Sep 2021 14:42:00 +0200 Subject: [PATCH] rx300: add some caching to franzi.business --- data/nginx/files/extras/rx300/franzi.business | 15 +++++++++++++++ nodes/rx300.py | 1 + 2 files changed, 16 insertions(+) create mode 100644 data/nginx/files/extras/rx300/franzi.business diff --git a/data/nginx/files/extras/rx300/franzi.business b/data/nginx/files/extras/rx300/franzi.business new file mode 100644 index 0000000..446fe58 --- /dev/null +++ b/data/nginx/files/extras/rx300/franzi.business @@ -0,0 +1,15 @@ + gzip on; + gzip_vary on; + gzip_min_length 10240; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml; + + location /css/ { + expires 7d; + add_header Cache-Control "public, no-transform"; + } + + location /img/ { + expires 30d; + add_header Cache-Control "public, no-transform"; + } diff --git a/nodes/rx300.py b/nodes/rx300.py index 7e65520..112f9eb 100644 --- a/nodes/rx300.py +++ b/nodes/rx300.py @@ -315,6 +315,7 @@ nodes['rx300'] = { 'franzi.business': { 'webroot': '/var/www/franzi.business/_site/', 'ssl': '_.franzi.business', + 'extras': True, }, 'kunbox.net': {}, 'kunsmann.eu': {