2022-04-12 22:34:11 +01:00
|
|
|
# caddyfile for omv
|
|
|
|
# 2022-04 add domain sites
|
|
|
|
# 2022-03 init
|
2021-12-25 20:07:37 +00:00
|
|
|
{
|
|
|
|
admin 0.0.0.0:2015
|
|
|
|
email bunce.andy@gmail.com
|
2022-03-31 21:37:12 +01:00
|
|
|
}
|
2021-12-25 20:07:37 +00:00
|
|
|
|
2022-03-31 21:37:12 +01:00
|
|
|
# Physical
|
|
|
|
(omv) {
|
|
|
|
reverse_proxy 192.168.1.6:{args.0}
|
2021-12-25 20:07:37 +00:00
|
|
|
}
|
2022-03-31 21:37:12 +01:00
|
|
|
(n2) {
|
|
|
|
reverse_proxy 192.168.1.4:{args.0}
|
|
|
|
}
|
2022-03-31 22:15:50 +01:00
|
|
|
(n2plus) {
|
|
|
|
reverse_proxy 192.168.1.10:{args.0}
|
|
|
|
}
|
2022-04-04 17:50:48 +01:00
|
|
|
(xu4) {
|
2022-11-27 22:45:36 +00:00
|
|
|
reverse_proxy 192.168.1.5:{args.0}
|
2022-04-02 14:59:37 +01:00
|
|
|
}
|
2022-04-04 17:49:33 +01:00
|
|
|
|
2022-03-31 21:37:12 +01:00
|
|
|
# DNS
|
|
|
|
(duckdns) {
|
2022-03-29 22:21:05 +01:00
|
|
|
tls {
|
2022-03-31 21:37:12 +01:00
|
|
|
dns duckdns {
|
2022-03-30 09:22:10 +01:00
|
|
|
api_token 428a1b3b-bc1d-4906-a230-9cd0a72fd06b
|
|
|
|
}
|
2022-03-29 22:21:05 +01:00
|
|
|
}
|
2022-03-31 21:37:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Auth
|
2022-04-02 13:11:52 +01:00
|
|
|
(auth_quodatum) {
|
2022-04-16 22:30:37 +01:00
|
|
|
basicauth bcrypt "Quodatum domain access" {
|
2022-11-27 21:18:39 +00:00
|
|
|
andy JDJhJDE0JDFHeUJHdGdZalFRdDg0cWhsRTFXeXU0cWZqZDNCNVV1d2gyRUlaNXhBMDFiZEFBZk5zM2RD
|
|
|
|
guest JDJhJDE0JDVYTENVREtLbG5xdzUyNXFGdm56Ti5rVmFSZ3VoOEZQR015V0F6VjdaMk1SeGM1NXVVeWR1
|
2022-04-02 13:11:52 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-31 21:37:12 +01:00
|
|
|
(auth) {
|
2022-04-16 23:07:39 +01:00
|
|
|
basicauth bcrypt "Orlop domain" {
|
2022-11-27 21:18:39 +00:00
|
|
|
andy JDJhJDE0JDFHeUJHdGdZalFRdDg0cWhsRTFXeXU0cWZqZDNCNVV1d2gyRUlaNXhBMDFiZEFBZk5zM2RD
|
|
|
|
solange JDJhJDE0JE9kcjNWY1U4VS54M2IwUmJuV1UwYS41SDRQQi9Kc2lDUDBKUkpkVjNVc1I2dUNyYzl5MU9x
|
2022-03-31 21:37:12 +01:00
|
|
|
}
|
|
|
|
}
|
2022-04-12 22:34:11 +01:00
|
|
|
# quodatum domain -------------------------------
|
2022-05-09 16:19:13 +01:00
|
|
|
quodatum.duckdns.org {
|
2022-05-09 23:11:36 +01:00
|
|
|
redir https://about.quodatum.duckdns.org
|
2022-05-09 16:19:13 +01:00
|
|
|
}
|
|
|
|
|
2022-03-31 21:37:12 +01:00
|
|
|
*.quodatum.duckdns.org {
|
|
|
|
import duckdns
|
2022-04-16 23:07:39 +01:00
|
|
|
# import auth_quodatum
|
2022-04-12 22:34:11 +01:00
|
|
|
|
2022-04-13 14:57:51 +01:00
|
|
|
@quodatum host about.quodatum.duckdns.org
|
2022-04-16 22:30:37 +01:00
|
|
|
handle @quodatum {
|
|
|
|
import auth_quodatum
|
2022-04-13 12:36:09 +01:00
|
|
|
encode zstd gzip
|
|
|
|
root * quodatum
|
|
|
|
file_server browse
|
|
|
|
}
|
2022-04-12 22:34:11 +01:00
|
|
|
|
2022-03-29 22:21:05 +01:00
|
|
|
@git host git.quodatum.duckdns.org
|
|
|
|
handle @git {
|
2022-03-31 21:37:12 +01:00
|
|
|
import omv 8300
|
2022-03-29 22:21:05 +01:00
|
|
|
}
|
2022-04-17 22:53:07 +01:00
|
|
|
@wiki host wiki.quodatum.duckdns.org
|
2022-03-30 22:28:17 +01:00
|
|
|
handle @wiki {
|
2022-04-16 22:30:37 +01:00
|
|
|
import auth_quodatum
|
2022-11-27 22:31:21 +00:00
|
|
|
import n2plus 8088
|
2022-03-30 22:28:17 +01:00
|
|
|
}
|
2022-11-27 22:31:21 +00:00
|
|
|
@wiki_alt host wiki-alt.quodatum.duckdns.org
|
|
|
|
handle @wiki_alt {
|
2022-04-16 22:30:37 +01:00
|
|
|
import auth_quodatum
|
2022-11-27 22:31:21 +00:00
|
|
|
import n2 8088
|
2022-04-02 14:59:37 +01:00
|
|
|
}
|
2022-03-31 22:01:00 +01:00
|
|
|
@code host code.quodatum.duckdns.org
|
2022-03-30 22:28:17 +01:00
|
|
|
handle @code {
|
2022-04-16 22:30:37 +01:00
|
|
|
import auth_quodatum
|
|
|
|
import n2plus 8444
|
2022-03-29 22:21:05 +01:00
|
|
|
}
|
2022-04-17 22:53:07 +01:00
|
|
|
|
2022-04-12 22:34:11 +01:00
|
|
|
@code-alt host code-alt.quodatum.duckdns.org
|
2022-04-16 22:30:37 +01:00
|
|
|
handle @code-alt {
|
|
|
|
import auth_quodatum
|
2022-11-09 16:09:18 +00:00
|
|
|
import omv 8444
|
2022-04-02 14:59:37 +01:00
|
|
|
}
|
2022-09-19 11:32:36 +01:00
|
|
|
|
|
|
|
@code-bmy host code-bmy.quodatum.duckdns.org
|
|
|
|
handle @code-bmy {
|
|
|
|
import auth_quodatum
|
|
|
|
import omv 8448
|
|
|
|
}
|
2022-11-27 22:45:36 +00:00
|
|
|
@shark host shark.quodatum.duckdns.org
|
|
|
|
handle @shark {
|
|
|
|
import auth_quodatum
|
|
|
|
import xu4 4000
|
|
|
|
}
|
2022-03-29 22:21:05 +01:00
|
|
|
# Fallback for otherwise unhandled domains
|
|
|
|
handle {
|
|
|
|
abort
|
|
|
|
}
|
2022-01-06 19:14:35 +00:00
|
|
|
}
|
2022-04-12 22:34:11 +01:00
|
|
|
# orlop domain ------------------------------------
|
2022-05-09 23:11:36 +01:00
|
|
|
orlop.duckdns.org {
|
|
|
|
redir https://about.orlop.duckdns.org
|
2022-05-09 16:19:13 +01:00
|
|
|
}
|
|
|
|
|
2022-04-13 12:36:09 +01:00
|
|
|
*.orlop.duckdns.org {
|
|
|
|
import duckdns
|
2022-04-16 23:18:43 +01:00
|
|
|
# import auth
|
2022-04-13 12:36:09 +01:00
|
|
|
|
2022-04-13 14:57:51 +01:00
|
|
|
@orlop host about.orlop.duckdns.org
|
2022-04-16 23:18:43 +01:00
|
|
|
handle @orlop {
|
|
|
|
import auth
|
2022-04-13 14:57:51 +01:00
|
|
|
encode zstd gzip
|
|
|
|
root * orlop
|
|
|
|
file_server browse
|
2022-04-13 12:36:09 +01:00
|
|
|
}
|
|
|
|
|
2022-04-17 22:53:07 +01:00
|
|
|
@jellyfin host jellyfin.orlop.duckdns.org
|
2022-03-29 22:21:05 +01:00
|
|
|
handle @jellyfin {
|
2022-04-16 23:18:43 +01:00
|
|
|
import auth
|
|
|
|
import omv 8096
|
2022-03-29 22:21:05 +01:00
|
|
|
}
|
2022-03-31 23:03:06 +01:00
|
|
|
@emby host emby.orlop.duckdns.org
|
|
|
|
handle @emby {
|
2022-04-16 23:18:43 +01:00
|
|
|
import auth
|
|
|
|
import omv 8097
|
2022-03-31 23:03:06 +01:00
|
|
|
}
|
2022-06-21 18:35:24 +01:00
|
|
|
@photoprism host photoprism.orlop.duckdns.org
|
|
|
|
handle @photoprism {
|
|
|
|
import omv 2342
|
|
|
|
}
|
2022-04-13 12:36:09 +01:00
|
|
|
@tvheadend host tvheadend.orlop.duckdns.org
|
|
|
|
handle @tvheadend {
|
2022-04-16 15:53:03 +01:00
|
|
|
import n2plus 9981
|
2022-04-13 12:36:09 +01:00
|
|
|
}
|
2022-04-17 22:53:07 +01:00
|
|
|
@kodi host kodi.orlop.duckdns.org
|
|
|
|
handle @kodi {
|
|
|
|
import n2 8080
|
|
|
|
}
|
2022-04-02 13:11:52 +01:00
|
|
|
@test host test.orlop.duckdns.org
|
|
|
|
handle @test {
|
|
|
|
respond "test, test. Hello, world!"
|
|
|
|
}
|
2022-04-17 22:53:07 +01:00
|
|
|
# Fallback for otherwise unhandled domains
|
2022-03-29 22:21:05 +01:00
|
|
|
handle {
|
|
|
|
abort
|
|
|
|
}
|
2021-12-24 22:48:02 +00:00
|
|
|
}
|
2022-03-30 22:28:17 +01:00
|
|
|
# local domain
|
|
|
|
odroid.local {
|
2022-03-30 23:21:27 +01:00
|
|
|
tls internal
|
2022-03-31 21:37:12 +01:00
|
|
|
import auth
|
2022-03-30 23:21:27 +01:00
|
|
|
|
|
|
|
encode zstd gzip
|
|
|
|
root .
|
|
|
|
file_server browse
|
|
|
|
}
|
|
|
|
xu4.local {
|
|
|
|
tls internal
|
2022-03-31 21:37:12 +01:00
|
|
|
import auth
|
2022-03-30 23:21:27 +01:00
|
|
|
|
2022-03-30 22:28:17 +01:00
|
|
|
encode zstd gzip
|
2022-04-02 13:11:52 +01:00
|
|
|
root * links
|
2022-03-30 23:21:27 +01:00
|
|
|
file_server browse
|
2022-03-30 22:28:17 +01:00
|
|
|
}
|