Merge pull request #287 from Coffey-Labs/nginx-example-compression

Compress the bundle in the nginx example
This commit is contained in:
Coffey Labs
2026-09-05 23:24:26 -07:00
committed by GitHub
+20
View File
@@ -6,6 +6,26 @@ server {
client_max_body_size 60m; client_max_body_size 60m;
# ihasmail serves its bundle uncompressed and leaves this to the proxy, so
# without these directives the browser downloads about 915 KB where 307 KB
# would do. text/event-stream is deliberately absent from gzip_types: the
# push stream must not be compressed or buffered.
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_min_length 1024;
# ihasmail serves scripts as text/javascript, so listing only
# application/javascript silently leaves the largest asset uncompressed.
gzip_types
application/javascript
application/json
application/manifest+json
image/svg+xml
text/css
text/javascript
text/plain;
location / { location / {
proxy_pass http://127.0.0.1:8080; proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1; proxy_http_version 1.1;