all repos — flynet @ b96bb3bae7fb45e2476389c98661fc35ea02d889

ersatz CDN on fly.io

send searchix views to goatcounter

Alin
commit

b96bb3bae7fb45e2476389c98661fc35ea02d889

parent

fe3132fcda77ab8d3d3d4a398c91ae8d1bdc045d

3 files changed, 19 insertions(+), 8 deletions(-)

changed files
M CaddyfileCaddyfile
@@ -16,6 +16,8 @@ format json
exclude admin.api } + order goatcounter after tracing + metrics { per_host }
@@ -74,17 +76,24 @@ }
} status.alin.ovh { - import cache - import dns01 - reverse_proxy https://home.alin.ovh { - header_up Host {hostport} - header_down -Alt-Svc - } + import cache + import dns01 + reverse_proxy https://home.alin.ovh { + header_up Host {hostport} + header_down -Alt-Svc + } } searchix.ovh { import cache import dns01 + + goatcounter { + api_host {$GOATCOUNTER_API_HOST} + token "{$GOATCOUNTER_TOKEN}" + site stats.searchix.ovh + } + reverse_proxy { to https://smrk.alin.ovh https://home.alin.ovh lb_policy first
@@ -95,7 +104,7 @@
# active health checks (service running) health_uri /health health_headers { - Host {hostport} + Host {hostport} } health_status 2xx health_interval 10s
M DockerfileDockerfile
@@ -6,7 +6,8 @@ RUN xcaddy build \
--with github.com/caddyserver/cache-handler \ --with github.com/darkweak/storages/nuts/caddy \ --with github.com/pberkel/caddy-storage-redis \ - --with github.com/caddy-dns/rfc2136 + --with github.com/caddy-dns/rfc2136 \ + --with github.com/jarv/caddy-goatcounter FROM caddy:${CADDY_VERSION}-alpine AS runner
M fly.tomlfly.toml
@@ -9,6 +9,7 @@
[build] [env] + GOATCOUNTER_API_HOST = "https://stats.alin.ovh" [deploy] release_command = "/usr/bin/caddy validate"