Skip to content

Commit 1bc70e4

Browse files
committed
fix: enable gzip for frontend static assets
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent ab0cc6b commit 1bc70e4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

frontend/nginx.kube.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ http {
1818

1919
charset utf-8;
2020

21+
gzip on;
22+
gzip_comp_level 5;
23+
gzip_min_length 1024;
24+
gzip_proxied any;
25+
gzip_vary on;
26+
gzip_types
27+
text/plain
28+
text/css
29+
text/javascript
30+
application/javascript
31+
application/json
32+
application/xml
33+
image/svg+xml;
34+
2135
server {
2236
listen 8081 default_server;
2337
listen [::]:8081;

0 commit comments

Comments
 (0)