configs: Enable gzip_static module
This commit is contained in:
parent
3421286c9b
commit
f0e6183c21
@ -118,6 +118,7 @@ server {
|
|||||||
alias /srv/FILES/;
|
alias /srv/FILES/;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
gzip_static always;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /wait.json {
|
location /wait.json {
|
||||||
|
@ -104,6 +104,7 @@ server {
|
|||||||
alias ${PATH_FILES}/;
|
alias ${PATH_FILES}/;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
gzip_static always;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /wait.json {
|
location /wait.json {
|
||||||
|
@ -108,6 +108,7 @@ server {
|
|||||||
alias /srv/FILES/;
|
alias /srv/FILES/;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
gzip_static always;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /wait.json {
|
location /wait.json {
|
||||||
|
@ -36,6 +36,12 @@ server {
|
|||||||
rewrite ^/.*$ /index.html;
|
rewrite ^/.*$ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /files/ {
|
||||||
|
sendfile on;
|
||||||
|
tcp_nodelay on;
|
||||||
|
gzip_static always;
|
||||||
|
}
|
||||||
|
|
||||||
location = /welcome.html {
|
location = /welcome.html {
|
||||||
internal;
|
internal;
|
||||||
if ($http_accept ~ "^application/json") {
|
if ($http_accept ~ "^application/json") {
|
||||||
|
Loading…
Reference in New Issue
Block a user