stacks/homelab/caddy/Caddyfile

126 lines
2.2 KiB
Caddyfile
Raw Normal View History

2022-09-04 08:37:29 -06:00
{
2023-12-28 10:07:43 -07:00
email neale@woozle.org
2023-02-06 12:14:14 -07:00
#debug
}
2022-09-04 08:37:29 -06:00
(restricted-access) {
2024-11-28 13:34:56 -07:00
forward_auth auth:4180 {
uri /oauth2/auth
copy_headers Authorization X-Auth-Request-Access-Token
@bad status 4xx
handle_response {
redir https://auth.woozle.org/oauth2/start?rd={scheme}://{host}{uri}
}
}
}
(restricted-access-naiive) {
forward_auth auth:4180 {
uri /oauth2/auth
# No copy-headers, so things don't get confused
@bad status 4xx
handle_response {
redir https://auth.woozle.org/oauth2/start?rd={scheme}://{host}{uri}
}
2023-02-09 14:34:56 -07:00
}
2022-09-04 08:37:29 -06:00
}
2024-11-28 13:34:56 -07:00
auth.woozle.org {
reverse_proxy auth:4180
}
2022-11-12 17:08:10 -07:00
git.woozle.org {
2023-04-02 21:34:26 -06:00
reverse_proxy gitea:3000
2022-09-04 08:37:29 -06:00
}
2022-11-12 17:08:10 -07:00
drive.woozle.org {
2024-11-28 13:34:56 -07:00
import restricted-access-naiive
2023-04-02 21:34:26 -06:00
reverse_proxy webfs:5000
2023-08-19 21:59:47 -06:00
#reverse_proxy filebrowser:80
2024-11-28 13:34:56 -07:00
#reverse_proxy nextcloud:80
2022-09-04 08:37:29 -06:00
}
# XXX: have this use caddy auth
2022-11-12 17:08:10 -07:00
ancestry.woozle.org {
2022-09-04 08:37:29 -06:00
reverse_proxy geneweb:2317
}
2023-02-15 16:39:09 -07:00
photos.woozle.org {
import restricted-access
2024-11-28 13:34:56 -07:00
reverse_proxy photos:8080 # photofield, photoprism, pigallery2
2023-02-15 16:39:09 -07:00
}
2023-04-03 20:06:58 -06:00
xfer.woozle.org {
reverse_proxy picoshare:4001
}
2024-11-28 13:34:56 -07:00
irc.woozle.org, irc.entar.net {
handle_path /socket {
reverse_proxy ircd:8067
}
handle /imgme/* {
reverse_proxy imgme:8080
}
root * /srv/sys/www/irc.woozle.org/
file_server
}
2023-02-15 16:39:09 -07:00
2022-10-12 17:45:23 -06:00
##
## handle sends original path
## handle_path truncates path
##
deergrove.woozle.org {
import restricted-access
handle_path /ddns/* {
reverse_proxy ddns:8000
}
2022-11-22 20:15:37 -07:00
handle /transmission/* {
2023-02-08 11:43:18 -07:00
reverse_proxy transmission:9091
2022-11-22 20:15:37 -07:00
}
2022-10-12 17:45:23 -06:00
handle /nzbget/* {
reverse_proxy nzbget:6789
}
handle /sonarr/* {
reverse_proxy sonarr:8989
}
2022-10-12 22:05:20 -06:00
handle /radarr/* {
reverse_proxy radarr:7878
}
handle /readarr/* {
reverse_proxy readarr:8787
}
2022-10-13 14:38:46 -06:00
handle /lidarr/* {
reverse_proxy lidarr:8686
}
2022-10-13 10:22:51 -06:00
handle /prowlarr/* {
reverse_proxy prowlarr:9696
2022-10-12 17:45:23 -06:00
}
2022-09-04 08:37:29 -06:00
handle_path /sucker/* {
2023-12-28 10:07:43 -07:00
reverse_proxy sucker:8080
2022-09-04 08:37:29 -06:00
}
2022-09-25 17:54:54 -06:00
2023-02-09 14:34:56 -07:00
handle_path /netdata/* {
reverse_proxy netdata:19999
}
# Octoprint serves up broken webcam URLs
uri replace /webcam/ /octoprint/webcam/
2022-09-07 16:53:39 -06:00
handle_path /octoprint/* {
reverse_proxy {
to 192.168.86.20:80
2022-09-07 16:53:39 -06:00
header_up X-Script-Name "/octoprint"
}
}
2022-09-25 17:54:54 -06:00
2022-09-04 17:12:30 -06:00
handle {
2023-04-02 21:34:26 -06:00
reverse_proxy portal:8080
2022-09-04 08:37:29 -06:00
}
}