sesame/Caddyfile

93 lines
1.4 KiB
Text
Raw Normal View History

# Components
2024-06-12 01:48:28 +00:00
(application_logging) {
2024-06-13 03:42:41 +00:00
log {
level INFO
output stdout
output file /var/log/caddy/caddy_{args[0]}.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
}
(application_base) {
2024-06-13 03:42:41 +00:00
import application_logging {args[0]}
2024-09-30 03:18:56 +00:00
tracing {
span api
}
reverse_proxy host.containers.internal:{args[1]}
}
(internal_base) {
import application_base {args[0]} {args[1]}
tls internal
}
{
2024-09-30 03:18:56 +00:00
log default {
2024-06-13 03:42:41 +00:00
output stdout
output file /var/log/caddy/caddy_main.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
2024-06-13 03:42:41 +00:00
servers {
metrics
}
2024-06-13 03:42:41 +00:00
admin :2019
}
# Internal routes
#
# Local DNS is expected to set up and map
# these routes.
2024-09-28 02:53:07 +00:00
https://plex.home.karnov.club {
import internal_base "plex" 32401
}
https://deluge.home.karnov.club {
import internal_base "deluge-web" 8112
}
2024-10-20 04:30:52 +00:00
https://cloud.home.karnov.club {
import internal_base "nextcloud" 2100
}
https://panopticon.home.karnov.club {
import internal_base "grafana" 3100
}
https://cr.home.karnov.club {
import internal_base "registry" 5000
}
2024-09-24 23:11:31 +00:00
https://hole.home.karnov.club {
import internal_base "pihole" 8080
}
# External routes
#
# Port-based routes face the outside world.
:53000 {
2024-06-13 03:42:41 +00:00
import application_base "forgejo" 3000
}
:53001 {
2024-06-13 03:42:41 +00:00
import application_base "forgejo-pg-exporter" 3001
}
2024-07-07 01:28:18 +00:00
:58082 {
import application_base "vault-web" 8082
}