thedocks/caddy/Caddyfile
2022-03-31 22:15:50 +01:00

84 lines
1.2 KiB
Caddyfile

# caddyfile mar 2022
{
admin 0.0.0.0:2015
email bunce.andy@gmail.com
}
# Physical
(omv) {
reverse_proxy 192.168.1.6:{args.0}
}
(n2) {
reverse_proxy 192.168.1.4:{args.0}
}
(n2plus) {
reverse_proxy 192.168.1.10:{args.0}
}
# DNS
(duckdns) {
tls {
dns duckdns {
api_token 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
}
}
}
# Auth
(auth) {
basicauth {
# hiccup
apb JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
}
}
# quodatum
*.quodatum.duckdns.org {
import duckdns
@git host git.quodatum.duckdns.org
handle @git {
import omv 8300
}
@wiki host wiki.quodatum.duckdns.org
handle @wiki {
import n2 8088
}
@code host code.quodatum.duckdns.org
handle @code {
import n2plus 8444
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}
# orlop
*.orlop.duckdns.org {
import duckdns
@jellyfin host jellyfin.orlop.duckdns.org
handle @jellyfin {
import omv 8096
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}
# local domain
odroid.local {
tls internal
import auth
encode zstd gzip
root .
file_server browse
}
xu4.local {
tls internal
import auth
encode zstd gzip
root links
file_server browse
}