diff options
author | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-05-23 21:53:52 +0200 |
---|---|---|
committer | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-05-23 21:53:52 +0200 |
commit | cb7956dfeccfa0e89c420ba89a0172a23a30f486 (patch) | |
tree | 2a4a0ff49094f303bcccc5b7bb5678590b33669a /compose | |
parent | Add HSTS (diff) |
Enable gzip compression for proxies and many types
Diffstat (limited to 'compose')
-rw-r--r-- | compose/nginx/nginx.conf | 9 |
1 files changed, 9 insertions, 0 deletions
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; |