all repos — flynet @ 68c2de53d1c7c998cc5f7951458cfe74eedd103f

ersatz CDN on fly.io

add stable searchix host

Alin
commit

68c2de53d1c7c998cc5f7951458cfe74eedd103f

parent

b96bb3bae7fb45e2476389c98661fc35ea02d889

1 file changed, 34 insertions(+), 0 deletions(-)

changed files
M CaddyfileCaddyfile
@@ -117,3 +117,37 @@ fail_duration 30s
unhealthy_status 5xx } } + +stable.searchix.ovh { + import cache + import dns01 + + goatcounter { + api_host {$GOATCOUNTER_API_HOST} + token "{$GOATCOUNTER_TOKEN}" + site stats.stable.searchix.ovh + } + + reverse_proxy { + to https://smrk.alin.ovh + lb_policy first + + header_up Host {hostport} + header_down -Alt-Svc + + # active health checks (service running) + health_uri /health + health_headers { + Host {hostport} + } + health_status 2xx + health_interval 10s + health_timeout 2s + health_fails 2 + + # passive health checks + max_fails 5 + fail_duration 30s + unhealthy_status 5xx + } +}