Skip to content

Commit 0f32308

Browse files
committed
Enabling gzip for the dashboard
1 parent f105adb commit 0f32308

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

template/root-nginx-conf.ejs

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,35 @@
3939
# Captain dashboard at captain.captainroot.domain.com
4040
server {
4141

42-
listen 80;
43-
client_max_body_size 300m;
44-
gzip on;
42+
listen 80;
43+
client_max_body_size 300m;
44+
45+
gzip on;
46+
gzip_disable "MSIE [1-6]\.";
47+
gzip_vary on;
48+
gzip_proxied any;
49+
gzip_comp_level 6;
50+
gzip_min_length 860;
51+
gzip_buffers 16 8k;
52+
gzip_types
53+
text/css
54+
text/plain
55+
text/javascript
56+
application/javascript
57+
application/json
58+
application/x-javascript
59+
application/xml
60+
application/xml+rss
61+
application/xhtml+xml
62+
application/x-font-ttf
63+
application/x-font-opentype
64+
application/vnd.ms-fontobject
65+
image/svg+xml
66+
image/x-icon
67+
application/rss+xml
68+
application/atom_xml;
69+
70+
4571

4672
<%
4773
if (captain.hasRootSsl) {

0 commit comments

Comments
 (0)