From 29612cd42079541643c625c39aedb48aadff0622 Mon Sep 17 00:00:00 2001 From: Dean Wenstrand Date: Wed, 25 Feb 2026 08:14:08 -0800 Subject: [PATCH] Add gzip_proxied any to enable compression behind reverse proxies GCP HTTP(S) LB adds Via header to forwarded requests, causing nginx to treat them as proxied. Without gzip_proxied, nginx skips dynamic gzip for these requests, resulting in uncompressed JS/CSS responses. Co-Authored-By: Claude Opus 4.6 --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 118dbc0..13b520d 100644 --- a/flake.nix +++ b/flake.nix @@ -55,6 +55,7 @@ access_log /dev/stdout; server { gzip on; + gzip_proxied any; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; listen 80; index index.php index.html;