From 4cf0d4f0e148d9d12dd5084fc5134779c6968661 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Tue, 25 Mar 2025 18:23:03 +0100
Subject: [PATCH] Fix X-Analytics-IP

---
 playbooks/roles/caddy/files/snippets | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/playbooks/roles/caddy/files/snippets b/playbooks/roles/caddy/files/snippets
index 97f8661..a9199cb 100644
--- a/playbooks/roles/caddy/files/snippets
+++ b/playbooks/roles/caddy/files/snippets
@@ -39,7 +39,7 @@
 (analytics) {
 	handle_path /_a/* {
 		reverse_proxy https://analytics.serguzim.me {
-			header_up X-Analytics-IP {remote}
+			header_up X-Analytics-IP {remote_host}
 			header_up Host {http.reverse_proxy.upstream.hostport}
 		}
 	}