configs: Enable gzip_static module
This commit is contained in:
parent
3421286c9b
commit
f0e6183c21
4 changed files with 9 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ server {
|
|||
rewrite ^/.*$ /index.html;
|
||||
}
|
||||
|
||||
location /files/ {
|
||||
sendfile on;
|
||||
tcp_nodelay on;
|
||||
gzip_static always;
|
||||
}
|
||||
|
||||
location = /welcome.html {
|
||||
internal;
|
||||
if ($http_accept ~ "^application/json") {
|
||||
|
|
|
|||
Reference in a new issue