2024-06-13 03:34:39 +00:00
|
|
|
# Components
|
2024-06-12 01:48:28 +00:00
|
|
|
|
2024-08-17 03:20:40 +00:00
|
|
|
(private_network_only) {
|
|
|
|
@ipfilter {
|
|
|
|
not header X-Forwarded-For {$PRIVATE_NET_IP}
|
|
|
|
}
|
|
|
|
|
|
|
|
route @ipfilter {
|
|
|
|
respond "nty. :3" 418
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-13 03:34:39 +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
|
|
|
|
}
|
2024-06-13 03:34:39 +00:00
|
|
|
}
|
2024-06-12 01:05:15 +00:00
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
(reverse_proxy_host) {
|
2024-06-13 03:42:41 +00:00
|
|
|
reverse_proxy host.containers.internal:{args[0]}
|
2024-06-12 01:05:15 +00:00
|
|
|
}
|
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
(application_base) {
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_logging {args[0]}
|
|
|
|
import reverse_proxy_host {args[1]}
|
2024-06-13 03:34:39 +00:00
|
|
|
}
|
2024-06-12 01:05:15 +00:00
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
{
|
2024-06-13 03:42:41 +00:00
|
|
|
log default {
|
|
|
|
output stdout
|
|
|
|
output file /var/log/caddy/caddy_main.log {
|
|
|
|
roll_size 100MiB
|
|
|
|
roll_keep 5
|
|
|
|
roll_keep_for 100d
|
|
|
|
}
|
|
|
|
format json
|
|
|
|
}
|
2024-06-12 01:05:15 +00:00
|
|
|
|
2024-06-13 03:42:41 +00:00
|
|
|
servers {
|
|
|
|
metrics
|
|
|
|
}
|
2024-06-13 03:34:39 +00:00
|
|
|
|
2024-06-13 03:42:41 +00:00
|
|
|
admin :2019
|
2024-06-12 01:05:15 +00:00
|
|
|
}
|
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
# Routes
|
2024-06-12 01:05:15 +00:00
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
:53100 {
|
2024-08-17 03:20:40 +00:00
|
|
|
import private_network_only
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_base "grafana" 3100
|
2024-06-13 03:34:39 +00:00
|
|
|
}
|
2024-06-12 01:05:15 +00:00
|
|
|
|
2024-06-13 03:34:39 +00:00
|
|
|
:53000 {
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_base "forgejo" 3000
|
2024-06-12 01:05:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
:53001 {
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_base "forgejo-pg-exporter" 3001
|
|
|
|
}
|
|
|
|
|
|
|
|
:55000 {
|
2024-08-17 03:20:40 +00:00
|
|
|
import private_network_only
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_base "registry" 5000
|
|
|
|
}
|
|
|
|
|
2024-07-07 01:28:18 +00:00
|
|
|
:58082 {
|
|
|
|
import application_base "vault-web" 8082
|
|
|
|
}
|
|
|
|
|
2024-06-13 03:42:41 +00:00
|
|
|
:53010 {
|
|
|
|
import application_base "bookstack-web" 3010
|
|
|
|
}
|
|
|
|
|
|
|
|
:58112 {
|
2024-08-17 03:20:40 +00:00
|
|
|
import private_network_only
|
2024-06-13 03:42:41 +00:00
|
|
|
import application_base "deluge-web" 8112
|
2024-06-12 01:05:15 +00:00
|
|
|
}
|