thedocks/caddy/Caddyfile

71 lines
1.3 KiB
Caddyfile

# caddyfile dec 2021
{
admin 0.0.0.0:2015
email bunce.andy@gmail.com
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
# quodatum
*.quodatum.duckdns.org {
tls {
dns duckdns {
api_token 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
}
}
@git host git.quodatum.duckdns.org
handle @git {
reverse_proxy omv.local:8300
}
@wiki host wiki.quodatum.duckdns.org
handle @wiki {
reverse_proxy odroid-n2.local:8088
}
@code host wiki.quodatum.duckdns.org
handle @code {
reverse_proxy odroid-n2.local:8444
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}
# orlop
*.orlop.duckdns.org {
tls {
dns duckdns {
api_token 28a1b3b-bc1d-4906-a230-9cd0a72fd06b
}
}
@jellyfin host jellyfin.orlop.duckdns.org
handle @jellyfin {
reverse_proxy omv.local:8096
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}
# local domain
odroid.local {
tls internal
basicauth {
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
}
encode zstd gzip
root .
file_server browse
}
xu4.local {
tls internal
# hiccup
basicauth {
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
}
encode zstd gzip
root .
file_server browse
}