[mod] use ip addr
This commit is contained in:
parent
188a0a4a65
commit
ad3284ba56
1 changed files with 34 additions and 23 deletions
|
@ -1,29 +1,49 @@
|
||||||
# caddyfile dec 2021
|
# caddyfile mar 2022
|
||||||
{
|
{
|
||||||
admin 0.0.0.0:2015
|
admin 0.0.0.0:2015
|
||||||
email bunce.andy@gmail.com
|
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 {
|
tls {
|
||||||
dns duckdns {
|
dns duckdns {
|
||||||
api_token 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
|
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
|
@git host git.quodatum.duckdns.org
|
||||||
handle @git {
|
handle @git {
|
||||||
reverse_proxy omv.local:8300
|
import omv 8300
|
||||||
}
|
}
|
||||||
@wiki host wiki.quodatum.duckdns.org
|
@wiki host wiki.quodatum.duckdns.org
|
||||||
handle @wiki {
|
handle @wiki {
|
||||||
reverse_proxy odroid-n2.local:8088
|
import omv 8088
|
||||||
}
|
}
|
||||||
@code host wiki.quodatum.duckdns.org
|
@code host wiki.quodatum.duckdns.org
|
||||||
handle @code {
|
handle @code {
|
||||||
reverse_proxy odroid-n2.local:8444
|
import n2 8444
|
||||||
}
|
}
|
||||||
# Fallback for otherwise unhandled domains
|
# Fallback for otherwise unhandled domains
|
||||||
handle {
|
handle {
|
||||||
|
@ -32,14 +52,10 @@
|
||||||
}
|
}
|
||||||
# orlop
|
# orlop
|
||||||
*.orlop.duckdns.org {
|
*.orlop.duckdns.org {
|
||||||
tls {
|
import duckdns
|
||||||
dns duckdns {
|
|
||||||
api_token 28a1b3b-bc1d-4906-a230-9cd0a72fd06b
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@jellyfin host jellyfin.orlop.duckdns.org
|
@jellyfin host jellyfin.orlop.duckdns.org
|
||||||
handle @jellyfin {
|
handle @jellyfin {
|
||||||
reverse_proxy omv.local:8096
|
import omv 8096
|
||||||
}
|
}
|
||||||
# Fallback for otherwise unhandled domains
|
# Fallback for otherwise unhandled domains
|
||||||
handle {
|
handle {
|
||||||
|
@ -49,9 +65,7 @@
|
||||||
# local domain
|
# local domain
|
||||||
odroid.local {
|
odroid.local {
|
||||||
tls internal
|
tls internal
|
||||||
basicauth {
|
import auth
|
||||||
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
|
|
||||||
}
|
|
||||||
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
root .
|
root .
|
||||||
|
@ -59,12 +73,9 @@ odroid.local {
|
||||||
}
|
}
|
||||||
xu4.local {
|
xu4.local {
|
||||||
tls internal
|
tls internal
|
||||||
# hiccup
|
import auth
|
||||||
basicauth {
|
|
||||||
Bob JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
|
|
||||||
}
|
|
||||||
|
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
root .
|
root link
|
||||||
file_server browse
|
file_server browse
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue