Skip to content

Commit 28dbb18

Browse files
authored
Merge pull request #6 from sunstep/docs/Nginx-brotli
Switch gzip to Brotli Nginx
2 parents 4a35c0d + 8de8a39 commit 28dbb18

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

docs/how_to_setup_reverse_proxy.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,34 @@ server {
4646
listen [::]:80;
4747
server_name example.com;
4848
49-
gzip on;
50-
gzip_disable "msie6";
51-
52-
gzip_vary on;
53-
gzip_proxied any;
54-
gzip_comp_level 6;
55-
gzip_buffers 16 8k;
56-
gzip_http_version 1.1;
57-
gzip_min_length 256;
58-
gzip_types
59-
application/json;
49+
brotli on;
50+
brotli_comp_level 6;
51+
brotli_types
52+
text/css
53+
text/plain
54+
text/xml
55+
text/x-component
56+
text/javascript
57+
application/x-javascript
58+
application/javascript
59+
application/json
60+
application/manifest+json
61+
application/vnd.api+json
62+
application/xml
63+
application/xhtml+xml
64+
application/rss+xml
65+
application/atom+xml
66+
application/vnd.ms-fontobject
67+
application/x-font-ttf
68+
application/x-font-opentype
69+
application/x-font-truetype
70+
image/svg+xml
71+
image/x-icon
72+
image/vnd.microsoft.icon
73+
font/ttf
74+
font/eot
75+
font/otf
76+
font/opentype;
6077
6178
location / {
6279
proxy_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)