Forward non-existent paths to original REKT server.
gitea/icedream/rekt-theme/master This commit looks good Details

master
Icedream 2019-03-16 01:39:26 +01:00
parent 3a75b52dc5
commit 09bb0081dd
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,16 @@
http://:80
root /htdocs/
# Forward non-existent paths to original REKT server.
# See https://github.com/mholt/caddy/issues/695#issuecomment-201871982
rewrite {
if {path} is /
to /proxy/{uri}
}
rewrite {
to {path} /proxy/{uri}
}
proxy /proxy https://rekt.fm {
without /proxy
}