aboutsummaryrefslogtreecommitdiffstats
path: root/templates/ingress
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-02 16:47:43 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-02 16:47:43 +0200
commit27958e6c144eee64371be75afe82dd7b4505cd79 (patch)
tree55d33116c56824d5dfdb3c7aa6f6232b31378495 /templates/ingress
parent1b3a892b3a0af90ee7239b67eecb0d2f510aa0b9 (diff)
Enable gzip in nginx
Diffstat (limited to 'templates/ingress')
-rw-r--r--templates/ingress/usr_local_etc_nginx_nginx.conf.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2
index 086d7f9..1e58153 100644
--- a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2
+++ b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2
@@ -18,6 +18,17 @@ http {
access_log /var/log/nginx/access.log vcombined;
+ gzip on;
+ gzip_vary on;
+ gzip_min_length 512;
+ gzip_types
+ text/plain
+ text/css
+ application/json
+ application/javascript
+ application/xml
+ image/svg+xml;
+
server {
listen 80 default_server;
server_name _;