summaryrefslogtreecommitdiffstats
path: root/roles/lists/files/etc/nginx/sites-available
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-05-17 20:24:09 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-05-17 20:34:42 +0200
commit3c7c834a37802e5ca5d93a4b4a91dde3264d9f5d (patch)
tree07abe3c01bb29505ceab94b7bdb587c1d3bd09ba /roles/lists/files/etc/nginx/sites-available
parenta16b003a9bf101234ca988b6e43466a3d6b99bc7 (diff)
nginx: Add Expires: HTTP headers.
Diffstat (limited to 'roles/lists/files/etc/nginx/sites-available')
-rw-r--r--roles/lists/files/etc/nginx/sites-available/sympa6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/lists/files/etc/nginx/sites-available/sympa b/roles/lists/files/etc/nginx/sites-available/sympa
index 4cfc11b..89d79f3 100644
--- a/roles/lists/files/etc/nginx/sites-available/sympa
+++ b/roles/lists/files/etc/nginx/sites-available/sympa
@@ -49,9 +49,9 @@ server {
return 302 /sympa$args;
}
- location ^~ /static-sympa/ { alias /usr/share/sympa/static_content/; }
- location ^~ /css-sympa/ { alias /var/lib/sympa/css/; }
- location ^~ /pictures-sympa/ { alias /var/lib/sympa/pictures; }
+ location ^~ /static-sympa/ { expires 30d; try_files $uri =404; alias /usr/share/sympa/static_content/; }
+ location ^~ /css-sympa/ { expires 30d; try_files $uri =404; alias /var/lib/sympa/css/; }
+ location ^~ /pictures-sympa/ { expires 30d; try_files $uri =404; alias /var/lib/sympa/pictures; }
location ~* ^/sympa(?:/|$) {
gzip off; # protect against BREACH