{ log default { output stdout output file /var/log/caddy/caddy_main.log { roll_size 100MiB roll_keep 5 roll_keep_for 100d } format json } servers { metrics } admin :2019 } # Grafana :53100 { log { level INFO output stdout output file /var/log/caddy/caddy_grafana.log { roll_size 100MiB roll_keep 5 roll_keep_for 100d } format json } reverse_proxy host.containers.internal:3100 } # Forgejo (web) :53000 { log { level INFO output stdout output file /var/log/caddy/caddy_forgejo.log { roll_size 100MiB roll_keep 5 roll_keep_for 100d } format json } reverse_proxy host.containers.internal:3000 } # Forgejo (ssh) :52052 { log { level INFO output stdout output file /var/log/caddy/caddy_forgejo-ssh.log { roll_size 100MiB roll_keep 5 roll_keep_for 100d } format json } reverse_proxy host.containers.internal:2052 } # Forgejo (postgres exporter / Prometheus) :53001 { log { level INFO output stdout output file /var/log/caddy/caddy_forgejo-pg-exporter.log { roll_size 10MiB roll_keep 5 roll_keep_for 10d } format json } reverse_proxy host.containers.internal:3001 }