[odrs-web] nginx: Enable gzip compression
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] nginx: Enable gzip compression
- Date: Thu, 28 Apr 2022 07:43:59 +0000 (UTC)
commit 5fb0ce571d9e3c9486e5729587a0724149c13db0
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Apr 28 09:42:47 2022 +0200
nginx: Enable gzip compression
nginx.conf | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/nginx.conf b/nginx.conf
index ff01174..001d6ae 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -23,7 +23,13 @@ http {
keepalive_timeout 65;
- #gzip on;
+ gzip on;
+ gzip_min_length 1000;
+ gzip_comp_level 5;
+ gzip_proxied any;
+ gzip_vary on;
+ gzip_types text/plain text/css text/javascript application/json image/gif
+ image/png image/jpeg image/svg+xml image/x-icon;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]