summaryrefslogtreecommitdiffstats
path: root/roles/lists/files/etc/nginx
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-05-17 17:25:34 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-05-17 18:30:03 +0200
commit407acdd1a00d1dc2242362f2b569bd261fb1d2e5 (patch)
tree0bc88d62e1bd0f096f661dd3290f3af5d86089f5 /roles/lists/files/etc/nginx
parentcaf1eb7d7b3082a6b3a335e59cdd5813b82f3966 (diff)
lists.fripost.org: Improve gzip support.
Diffstat (limited to 'roles/lists/files/etc/nginx')
-rw-r--r--roles/lists/files/etc/nginx/sites-available/sympa7
1 files changed, 3 insertions, 4 deletions
diff --git a/roles/lists/files/etc/nginx/sites-available/sympa b/roles/lists/files/etc/nginx/sites-available/sympa
index cdc2364..4cfc11b 100644
--- a/roles/lists/files/etc/nginx/sites-available/sympa
+++ b/roles/lists/files/etc/nginx/sites-available/sympa
@@ -36,8 +36,7 @@ server {
gzip on;
gzip_vary on;
gzip_min_length 256;
- gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
- gzip_types application/javascript application/json application/xml image/x-icon text/css text/plain;
+ gzip_types application/font-woff application/font-woff2 application/javascript application/json application/xml image/x-icon text/css text/plain;
location = /robots.txt {
allow all;
@@ -55,7 +54,7 @@ server {
location ^~ /pictures-sympa/ { alias /var/lib/sympa/pictures; }
location ~* ^/sympa(?:/|$) {
- gzip off;
+ gzip off; # protect against BREACH
fastcgi_split_path_info ^(/sympa)(.*)$;
include snippets/fastcgi.conf;
@@ -67,7 +66,7 @@ server {
return 302 /$1/sympa$args;
}
location ~* ^/(?<vhost>[^/]+)/sympa(?:/|$) {
- gzip off;
+ gzip off; # protect against BREACH
if (!-f /etc/sympa/$vhost/robot.conf) {
return 404;