diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:24:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:34:42 +0200 |
commit | 3c7c834a37802e5ca5d93a4b4a91dde3264d9f5d (patch) | |
tree | 07abe3c01bb29505ceab94b7bdb587c1d3bd09ba /roles/lists | |
parent | a16b003a9bf101234ca988b6e43466a3d6b99bc7 (diff) |
nginx: Add Expires: HTTP headers.
Diffstat (limited to 'roles/lists')
-rw-r--r-- | roles/lists/files/etc/nginx/sites-available/sympa | 6 |
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 |