summaryrefslogtreecommitdiffstats
path: root/roles/wiki/files/etc/nginx/sites-available/website
diff options
context:
space:
mode:
Diffstat (limited to 'roles/wiki/files/etc/nginx/sites-available/website')
-rw-r--r--roles/wiki/files/etc/nginx/sites-available/website13
1 files changed, 6 insertions, 7 deletions
diff --git a/roles/wiki/files/etc/nginx/sites-available/website b/roles/wiki/files/etc/nginx/sites-available/website
index c524800..cd6832a 100644
--- a/roles/wiki/files/etc/nginx/sites-available/website
+++ b/roles/wiki/files/etc/nginx/sites-available/website
@@ -35,28 +35,27 @@ server {
ssl_certificate_key ssl/www.fripost.org.key;
include snippets/fripost.org.hpkp-hdr;
+ gzip on;
+ gzip_vary on;
+ gzip_min_length 256;
+ gzip_types application/font-woff application/font-woff2 application/javascript application/json application/xml image/svg+xml image/x-icon text/css text/plain;
+
location / {
try_files $uri $uri/ =404;
index index.html;
root /var/lib/ikiwiki/public_html/fripost-wiki/website;
}
+ location = /ikiwiki.cgi { internal; }
location /static/ {
alias /var/lib/ikiwiki/public_html/fripost-wiki/static/;
- expires 30d;
}
location /material/ {
alias /var/www/fripost.org/material/;
- expires 30d;
}
location /minutes/ {
alias /var/www/fripost.org/minutes/;
- expires 30d;
}
location /.well-known/autoconfig/ {
alias /var/www/fripost.org/autoconfig/;
}
-
- location = /ikiwiki.cgi {
- return 403;
- }
}