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

@@ -1,6 +1,8 @@
[Unit] [Unit]
# https://docs.docker.com/articles/host_integration/ # https://docs.docker.com/articles/host_integration/
# https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/ # https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/
# /etc/systemd/system/greptweet.service
# sudo systemctl enable greptweet.service
Description=Greptweet Description=Greptweet
After=docker.service After=docker.service
Requires=docker.service Requires=docker.service

View File

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