From ce1891d6c96bc0c2e4a4443c9736c2bdc9f0f1a0 Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Wed, 22 May 2024 00:01:51 +0200 Subject: [PATCH] feat:#31 added gzip in nginx --- reverseproxy.conf | 2 ++ reverseproxy.dev.conf | 3 +++ reverseproxy.local.conf | 3 +++ 3 files changed, 8 insertions(+) diff --git a/reverseproxy.conf b/reverseproxy.conf index 3ebf758..7ced37c 100644 --- a/reverseproxy.conf +++ b/reverseproxy.conf @@ -26,6 +26,8 @@ events { http { include mime.types; default_type application/octet-stream; + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; # Cloudflare IP Ranges (https://www.cloudflare.com/ips/) set_real_ip_from 173.245.48.0/20; diff --git a/reverseproxy.dev.conf b/reverseproxy.dev.conf index 37c193a..7a99919 100644 --- a/reverseproxy.dev.conf +++ b/reverseproxy.dev.conf @@ -27,6 +27,9 @@ http { include mime.types; default_type application/octet-stream; + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + # Cloudflare IP Ranges (https://www.cloudflare.com/ips/) set_real_ip_from 173.245.48.0/20; set_real_ip_from 103.21.244.0/22; diff --git a/reverseproxy.local.conf b/reverseproxy.local.conf index 76e2ff2..9f41876 100644 --- a/reverseproxy.local.conf +++ b/reverseproxy.local.conf @@ -27,6 +27,9 @@ http { include mime.types; default_type application/octet-stream; + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + access_log /opt/bitnami/nginx/logs/proxy_access.log; error_log /opt/bitnami/nginx/logs/proxy_error.log;