aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'support/nginx')
-rw-r--r--support/nginx/peertube6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/nginx/peertube b/support/nginx/peertube
index 1b698576f..0720dbd97 100644
--- a/support/nginx/peertube
+++ b/support/nginx/peertube
@@ -37,9 +37,11 @@ server {
37 # resolver $DNS-IP-1 $DNS-IP-2 valid=300s; 37 # resolver $DNS-IP-1 $DNS-IP-2 valid=300s;
38 # resolver_timeout 5s; 38 # resolver_timeout 5s;
39 39
40 # Enable compression for JS/CSS/HTML and JSON, for improved client load times 40 # Enable compression for JS/CSS/HTML bundle, for improved client load times.
41 # It might be nice to compress JSON, but leaving that out to protect against potential
42 # compression+encryption information leak attacks like BREACH.
41 gzip on; 43 gzip on;
42 gzip_types text/plain text/css text/html application/javascript application/json; 44 gzip_types text/css text/html application/javascript;
43 gzip_vary on; 45 gzip_vary on;
44 46
45 add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; 47 add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";