stacks/homelab/Caddyfile

111 lines
1.8 KiB
Caddyfile
Raw Normal View History

2022-09-04 08:37:29 -06:00
{
email neale@woozle.org
}
(restricted-access) {
2022-09-07 21:47:37 -06:00
forward_auth simpleauth:8080 {
uri /
2022-09-10 17:32:15 -06:00
copy_headers X-Simpleauth-Token
2022-09-04 08:37:29 -06:00
}
}
git.woozle.org {
reverse_proxy gitea:3000
}
drive.woozle.org {
import restricted-access
# XXX: browsing says method not allowed
2022-09-11 15:42:18 -06:00
@nondav {
method HEAD GET
2022-09-04 08:37:29 -06:00
}
# route overrides built-in ordering
route {
2022-09-11 15:42:18 -06:00
file_server @nondav {
2022-09-04 08:37:29 -06:00
root /srv/ext/
2022-09-11 15:42:18 -06:00
browse /www/browse.html
2022-09-04 08:37:29 -06:00
}
reverse_proxy webdav:8000
}
}
# XXX: have this use caddy auth
ancestry.woozle.org {
reverse_proxy geneweb:2317
}
2022-10-12 17:45:23 -06:00
##
## handle sends original path
## handle_path truncates path
##
2022-09-07 16:53:39 -06:00
deergrove.woozle.org, sweetums.woozle.org {
2022-10-12 17:45:23 -06:00
handle_path /qbittorrent/* {
import restricted-access
reverse_proxy host.docker.internal:6880
}
2022-09-04 08:37:29 -06:00
handle /transmission/* {
import restricted-access
reverse_proxy host.docker.internal:9091
}
2022-09-25 17:54:54 -06:00
2022-10-12 17:45:23 -06:00
handle /nzbget/* {
import restricted-access
reverse_proxy nzbget:6789
}
handle /sonarr/* {
import restricted-access
reverse_proxy sonarr:8989
}
handle /jackett/* {
import restricted-access
reverse_proxy jackett:9117
}
2022-09-04 08:37:29 -06:00
handle_path /sucker/* {
import restricted-access
reverse_proxy host.docker.internal:5880
}
2022-09-25 17:54:54 -06:00
2022-09-07 16:53:39 -06:00
handle_path /octoprint/* {
import restricted-access
reverse_proxy {
to 192.168.86.36:80
header_up X-Script-Name "/octoprint"
}
}
2022-09-25 17:54:54 -06:00
2022-09-10 17:32:15 -06:00
handle /webcam/* {
# Octoprint doesn't properly prefix webcam URLs
import restricted-access
reverse_proxy {
to 192.168.86.36:80
}
}
2022-09-25 17:54:54 -06:00
handle_path /wallart/* {
reverse_proxy {
to wallart:8080
}
}
rewrite /public/wallart.bin /wallart/wallart.bin
handle_path /public/* {
file_server {
root /srv/ext/storage/public
}
}
2022-09-04 17:12:30 -06:00
handle {
import restricted-access
file_server {
root /www
}
2022-09-04 08:37:29 -06:00
}
}