all repos — flynet @ d9895327042e32fde2bdef98879373d8d55a3308

ersatz CDN on fly.io

remove searchix

Alin
commit

d9895327042e32fde2bdef98879373d8d55a3308

parent

250a266770b37b1e75a5ef4bfc611aa8a9d6f961

2 files changed, 1 insertion(+), 92 deletions(-)

changed files
M CaddyfileCaddyfile
@@ -59,28 +59,6 @@ cache
header -Server } -(rate_limit) { - rate_limit { - distributed - zone global_static { - match { - query query=* - } - key static - events 100 - window 1m - } - zone host_dynamic { - match { - query query=* - } - key {remote_host} - events 5 - window 10s - } - } -} - flynet-butterfly-1123.fly.dev { respond "Hello, world!" }
@@ -128,71 +106,3 @@ header_up Host {hostport}
header_down -Alt-Svc } } - -searchix.ovh { - import cache - import rate_limit - - goatcounter { - api_host https://stats.searchix.ovh - site stats.searchix.ovh - token {$GOATCOUNTER_TOKEN} - } - - reverse_proxy { - to https://smrk.alin.ovh https://home.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 5s - health_fails 2 - - # passive health checks - max_fails 5 - fail_duration 30s - unhealthy_status 5xx - } -} - -stable.searchix.ovh { - import cache - import rate_limit - - goatcounter { - api_host https://stats.stable.searchix.ovh - site stats.stable.searchix.ovh - token {$GOATCOUNTER_TOKEN} - } - - 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 5s - health_fails 2 - - # passive health checks - max_fails 5 - fail_duration 30s - unhealthy_status 5xx - } -}
M DockerfileDockerfile
@@ -7,8 +7,7 @@ --with github.com/caddyserver/cache-handler \
--with github.com/darkweak/storages/simplefs/caddy \ --with github.com/pberkel/caddy-storage-redis \ --with github.com/caddy-dns/rfc2136 \ - --with github.com/jarv/caddy-goatcounter \ - --with github.com/mholt/caddy-ratelimit + --with github.com/jarv/caddy-goatcounter FROM caddy:${CADDY_VERSION}-alpine AS runner