mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 12:11:05 -05:00
Hotfix
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[Unit]
|
||||
# https://docs.docker.com/articles/host_integration/
|
||||
# https://coreos.com/docs/launching-containers/launching/getting-started-with-systemd/
|
||||
# /etc/systemd/system/greptweet.service
|
||||
# sudo systemctl enable greptweet.service
|
||||
Description=Greptweet
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
@@ -27,11 +27,15 @@ http {
|
||||
rewrite ^/f/(.*)$ /create.php?id=$1 last;
|
||||
}
|
||||
|
||||
location ~ \.(txt)$ {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user