summaryrefslogtreecommitdiffstats
path: root/roles/lists
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-10-30 02:44:26 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-10-30 12:48:53 +0100
commitbd525cbda9c874823e3384227dcc8a1cb0dea35f (patch)
tree5b10d2709685ad2e4ffe071fed48aafaf799e2b0 /roles/lists
parent5e72af08d3b98b08167595b1d0ceb9d0a75c7375 (diff)
nginx: adjust expiration date for static content.
Diffstat (limited to 'roles/lists')
-rw-r--r--roles/lists/files/etc/nginx/sites-available/sympa1
1 files changed, 1 insertions, 0 deletions
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
@@ -13,40 +13,41 @@ server {
server {
listen 443;
listen [::]:443 ipv6only=on;
server_name lists.fripost.org;
access_log /var/log/nginx/lists.access.log;
error_log /var/log/nginx/lists.error.log info;
include ssl/config;
ssl_certificate /etc/nginx/ssl/lists.fripost.org.pem;
ssl_certificate_key /etc/nginx/ssl/lists.fripost.org.key;
location = / {
return 302 /sympa$args;
}
location ^~ /static-sympa/ {
alias /var/lib/sympa/static_content/;
+ expires 30d;
}
location ^~ /sympa {
fastcgi_split_path_info ^(/sympa)(.*)$;
include fastcgi/params;
fastcgi_pass unix:/run/wwsympa.socket;
gzip off;
}
location ~* ^/([^/]+)/?$ {
return 302 /$1/sympa$args;
}
location ~* ^/([^/]+)/sympa(/.*)?$ {
set $vhost $1;
if (!-f /etc/sympa/$vhost/robot.conf) {
return 404;
}