This commit is contained in:
Kai Hendry
2015-10-08 08:56:05 +00:00
parent a686556b8b
commit d7946fe289
2 changed files with 10 additions and 4 deletions

View File

@@ -27,10 +27,14 @@ http {
rewrite ^/f/(.*)$ /create.php?id=$1 last;
}
location ~ \.(txt)$ {
add_header Content-Encoding gzip;
gzip off;
}
location ~ \.(gz)$ {
add_header Content-Encoding gzip;
gzip off;
}
location ~ \.(txt)$ {
rewrite ^/u/(.*)/ /u/$1/$1.txt.gz last;
}
location ~* \.(svg|css|js)$ {
expires 7d;