[mod] use ip addr

This commit is contained in:
Andy Bunce 2022-03-31 21:37:12 +01:00
parent 188a0a4a65
commit ad3284ba56
1 changed files with 34 additions and 23 deletions

View File

@ -1,29 +1,49 @@
# caddyfile dec 2021
# caddyfile mar 2022
{
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 {
# Physical
(omv) {
reverse_proxy 192.168.1.6:{args.0}
}
(n2) {
reverse_proxy 192.168.1.4:{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 {
reverse_proxy omv.local:8300
import omv 8300
}
@wiki host wiki.quodatum.duckdns.org
handle @wiki {
reverse_proxy odroid-n2.local:8088
import omv 8088
}
@code host wiki.quodatum.duckdns.org
handle @code {
reverse_proxy odroid-n2.local:8444
import n2 8444
}
# Fallback for otherwise unhandled domains
handle {
@ -32,14 +52,10 @@
}
# orlop
*.orlop.duckdns.org {
tls {
dns duckdns {
api_token 28a1b3b-bc1d-4906-a230-9cd0a72fd06b
}
}
import duckdns
@jellyfin host jellyfin.orlop.duckdns.org
handle @jellyfin {
reverse_proxy omv.local:8096
import omv 8096
}
# Fallback for otherwise unhandled domains
handle {
@ -49,9 +65,7 @@
# local domain
odroid.local {
tls internal
basicauth {
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
}
import auth
encode zstd gzip
root .
@ -59,12 +73,9 @@ odroid.local {
}
xu4.local {
tls internal
# hiccup
basicauth {
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
}
import auth
encode zstd gzip
root .
root link
file_server browse
}