52 lines
642 B
Caddyfile
52 lines
642 B
Caddyfile
{
|
|
log {
|
|
output stdout
|
|
format json
|
|
level INFO
|
|
}
|
|
}
|
|
|
|
:80 {
|
|
encode gzip zstd
|
|
|
|
handle_path /static/* {
|
|
uri strip_prefix /static
|
|
reverse_proxy backend-staticfiles:80 {
|
|
fail_duration 30s
|
|
max_fails 10
|
|
}
|
|
}
|
|
|
|
handle_path /grafana/* {
|
|
reverse_proxy grafana:3000 {
|
|
fail_duration 30s
|
|
max_fails 10
|
|
health_uri /grafana
|
|
health_interval 10s
|
|
health_timeout 2s
|
|
}
|
|
}
|
|
|
|
handle {
|
|
request_body {
|
|
max_size 5976883
|
|
}
|
|
|
|
reverse_proxy backend:8080 {
|
|
fail_duration 30s
|
|
max_fails 10
|
|
|
|
health_uri /ready
|
|
health_interval 10s
|
|
health_timeout 2s
|
|
}
|
|
}
|
|
}
|
|
|
|
:8404 {
|
|
metrics /metrics
|
|
log {
|
|
output discard
|
|
}
|
|
}
|