sesame/Caddyfile

86 lines
1.5 KiB
Text
Raw Normal View History

{
log default {
output stdout
2024-06-12 03:17:41 +00:00
output file /var/log/caddy/caddy_main.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
2024-06-12 01:42:45 +00:00
servers {
metrics
}
2024-06-12 01:48:28 +00:00
admin :2019
}
# Grafana
2024-06-12 01:28:01 +00:00
:53100 {
log {
level INFO
2024-06-12 03:17:41 +00:00
output stdout
output file /var/log/caddy/caddy_grafana.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
2024-06-12 01:28:01 +00:00
reverse_proxy host.containers.internal:3100
}
# Forgejo (web)
:53000 {
log {
level INFO
2024-06-12 03:17:41 +00:00
output stdout
output file /var/log/caddy/caddy_forgejo.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
2024-06-12 01:11:26 +00:00
reverse_proxy host.containers.internal:3000
}
# Forgejo (ssh)
:52052 {
log {
level INFO
2024-06-12 03:17:41 +00:00
output stdout
output file /var/log/caddy/caddy_forgejo-ssh.log {
roll_size 100MiB
roll_keep 5
roll_keep_for 100d
}
format json
}
2024-06-12 01:11:26 +00:00
reverse_proxy host.containers.internal:2052
}
# Forgejo (postgres exporter / Prometheus)
:53001 {
log {
level INFO
2024-06-12 03:17:41 +00:00
output stdout
output file /var/log/caddy/caddy_forgejo-pg-exporter.log {
roll_size 10MiB
roll_keep 5
roll_keep_for 10d
}
format json
}
2024-06-12 01:11:26 +00:00
reverse_proxy host.containers.internal:3001
}