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]
|
[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
|
||||||
|
|||||||
12
nginx.conf
12
nginx.conf
@@ -27,10 +27,14 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user