Skip to content

Commit 1223baf

Browse files
authored
Merge pull request #13 from Intellection/enable-gzip
Enable gzip compression
2 parents 2b0fea1 + f17e1be commit 1223baf

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.23.3-1
4+
5+
* Enable gzip compression globally.
6+
37
## 1.23.3
48

59
* Upgrade nginx to 1.23.3.

config/http.conf

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,46 @@ http {
7878
proxy_set_header X-Request-ID $proxy_x_request_id;
7979
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host;
8080

81+
gzip on;
82+
gzip_comp_level 5;
83+
gzip_min_length 256;
84+
gzip_proxied any;
85+
gzip_vary on;
86+
gzip_types
87+
application/atom+xml
88+
application/geo+json
89+
application/javascript
90+
application/x-javascript
91+
application/json
92+
application/ld+json
93+
application/manifest+json
94+
application/rdf+xml
95+
application/rss+xml
96+
application/vnd.ms-fontobject
97+
application/wasm
98+
application/x-web-app-manifest+json
99+
application/xhtml+xml
100+
application/xml
101+
font/eot
102+
font/otf
103+
font/ttf
104+
image/bmp
105+
image/svg+xml
106+
image/vnd.microsoft.icon
107+
image/x-icon
108+
text/cache-manifest
109+
text/calendar
110+
text/css
111+
text/javascript
112+
text/markdown
113+
text/plain
114+
text/xml
115+
text/vcard
116+
text/vnd.rim.location.xloc
117+
text/vtt
118+
text/x-component
119+
text/x-cross-domain-policy;
120+
81121
include /etc/nginx/app.conf;
82122

83123
server {

0 commit comments

Comments
 (0)