From 58a0a5a6e1c84f2a3567eb6a028373d08d77c450 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 15 Sep 2024 16:58:33 +0530 Subject: [PATCH] all: caddy - try to find client ips --- hosts/shared/caddy.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/shared/caddy.nix b/hosts/shared/caddy.nix index 0ee9371..7e1389a 100644 --- a/hosts/shared/caddy.nix +++ b/hosts/shared/caddy.nix @@ -18,6 +18,11 @@ in email = "admin@acomputer.lol"; globalConfig = '' acme_dns digitalocean {env.DO_API_TOKEN} + servers { + trusted_proxies static private_ranges 10.10.10.0/24 fd7c:585c:c4ae::0/64 + client_ip_headers X-Forwarded-For X-Real-IP + metrics + } ''; logFormat = logFormat "caddy_main"; };