feat: enabled gzip compression
This commit is contained in:
Executable → Regular
+16
-4
@@ -24,6 +24,20 @@ server {
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 4;
|
||||
gzip_min_length 1024;
|
||||
gzip_vary on;
|
||||
gzip_types
|
||||
application/json
|
||||
application/javascript
|
||||
text/plain
|
||||
text/css
|
||||
text/xml
|
||||
application/xml;
|
||||
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
@@ -32,7 +46,9 @@ server {
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://10.222.0.2:8080;
|
||||
}
|
||||
|
||||
@@ -48,8 +64,4 @@ server {
|
||||
|
||||
proxy_pass http://10.222.0.2:4000/;
|
||||
}
|
||||
|
||||
location /panorama {
|
||||
root /usr/share/nginx/html/lobby-web;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user