all repos — homestead @ a8af967578010ceefe506b63f88e4eaee5cdeb11

Code for my website

Fix erroneous 200 responses on missing files Revert "Replace metrics with advanced metrics for path-based counters" This reverts commit 701027da4a05de41ecc4dae78ac8fc2f3a4425bf.

Alan Pearce
commit

a8af967578010ceefe506b63f88e4eaee5cdeb11

parent

3a282a7e4ddaa627e63048f6bbe49c78ce21adfd

2 files changed, 6 insertions(+), 7 deletions(-)

jump to
M CaddyfileCaddyfile
@@ -4,12 +4,15 @@ persist_config off
auto_https disable_redirects acme_ca https://acme.zerossl.com/v2/DV90 import globals/* - order advanced_metrics before file_server - order advanced_metrics before reverse_proxy servers :80 { + metrics protocols h1 h2c trusted_proxies static private_ranges } +} + +:9091 { + metrics } http://,
@@ -35,9 +38,6 @@ redir /* https://alanpearce.eu/{uri}
} http://alanpearce.eu { - advanced_metrics { - port 9091 - } root * {$SITE_ROOT} file_server { precompressed br zstd gzip
M DockerfileDockerfile
@@ -4,8 +4,7 @@
FROM docker.io/caddy:${VERSION}-builder-${VARIANT} AS builder RUN xcaddy build \ - --with github.com/gamalan/caddy-tlsredis \ - --with github.com/sebastianbrunnert/caddy-advanced-metrics + --with github.com/gamalan/caddy-tlsredis FROM docker.io/caddy:${VERSION}-${VARIANT}