From cb7956dfeccfa0e89c420ba89a0172a23a30f486 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Thu, 23 May 2019 21:53:52 +0200 Subject: Enable gzip compression for proxies and many types --- compose/nginx/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compose/nginx/nginx.conf') diff --git a/compose/nginx/nginx.conf b/compose/nginx/nginx.conf index bc2c359..bfef493 100644 --- a/compose/nginx/nginx.conf +++ b/compose/nginx/nginx.conf @@ -37,6 +37,15 @@ http { keepalive_timeout 65; gzip on; + gzip_proxied any; + gzip_types + text/css + text/javascript + text/xml + text/plain + application/javascript + application/x-javascript + application/json; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; -- cgit 1.4.1