about summary refs log tree commit diff stats
path: root/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Caddyfile b/Caddyfile
index e5ca8f7..7c7e0b4 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -4,17 +4,14 @@
 	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://,
 http://alanpearce.uk,
 http://www.alanpearce.uk,
@@ -24,6 +21,9 @@ http://www.alanpearce.eu {
 }
 
 http://alanpearce.eu {
+	advanced_metrics {
+		port 9091
+	}
 	root * {$SITE_ROOT}
 	file_server {
 		precompressed br zstd gzip