Skip to content

Commit f1b6f6c

Browse files
perf(ui): enable gzip compression for faster asset delivery
- Static files are now compressed before sending, so pages and assets load quicker for users.
1 parent 1ab1471 commit f1b6f6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

container/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ http {
1717
include /etc/nginx/mime.types;
1818
default_type application/octet-stream;
1919

20+
gzip on;
21+
gzip_comp_level 6;
22+
gzip_min_length 1024;
23+
gzip_proxied any;
24+
gzip_vary on;
25+
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
26+
2027
log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" '
2128
'$status $body_bytes_sent "$http_referer" '
2229
'"$http_user_agent" $remote_addr';

0 commit comments

Comments
 (0)