summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/git/files/etc/nginx/sites-available/git2
-rw-r--r--roles/lists/files/etc/nginx/sites-available/sympa1
-rw-r--r--roles/wiki/files/etc/nginx/sites-available/website3
3 files changed, 6 insertions, 0 deletions
diff --git a/roles/git/files/etc/nginx/sites-available/git b/roles/git/files/etc/nginx/sites-available/git
index 75c1512..112babb 100644
--- a/roles/git/files/etc/nginx/sites-available/git
+++ b/roles/git/files/etc/nginx/sites-available/git
@@ -18,6 +18,7 @@ server {
root /var/lib/gitolite/repositories;
try_files /$1.git/objects/$2 /$1/objects/$2 =404;
expires 30d;
+ gzip off;
# TODO honor git-daemon-export-ok
}
@@ -67,6 +68,7 @@ server {
root /var/lib/gitolite/repositories;
try_files /$1.git/objects/$2 /$1/objects/$2 =404;
expires 30d;
+ gzip off;
# TODO honor git-daemon-export-ok
}
diff --git a/roles/lists/files/etc/nginx/sites-available/sympa b/roles/lists/files/etc/nginx/sites-available/sympa
index fa3cad1..77e9dc0 100644
--- a/roles/lists/files/etc/nginx/sites-available/sympa
+++ b/roles/lists/files/etc/nginx/sites-available/sympa
@@ -30,6 +30,7 @@ server {
location ^~ /static-sympa/ {
alias /var/lib/sympa/static_content/;
+ expires 30d;
}
location ^~ /sympa {
diff --git a/roles/wiki/files/etc/nginx/sites-available/website b/roles/wiki/files/etc/nginx/sites-available/website
index 3513510..ba8a34f 100644
--- a/roles/wiki/files/etc/nginx/sites-available/website
+++ b/roles/wiki/files/etc/nginx/sites-available/website
@@ -35,12 +35,15 @@ server {
}
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/;