send searchix views to goatcounter
3 files changed, 19 insertions(+), 8 deletions(-)
changed files
M Caddyfile → Caddyfile
@@ -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 Dockerfile → Dockerfile
@@ -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