From 35071d5fc26c366dc39a13b48d04d3c44f6ca079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 30 Nov 2024 12:53:03 +0100 Subject: [PATCH] Add logging to http proxy --- services/http-proxy/proxy.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/services/http-proxy/proxy.nix b/services/http-proxy/proxy.nix index c8a4bd1..6cd87db 100644 --- a/services/http-proxy/proxy.nix +++ b/services/http-proxy/proxy.nix @@ -4,21 +4,36 @@ enable = true; configFile = pkgs.writeText "Caddyfile" '' http://nzbget.home.2rjus.net { - reverse_proxy http://nzbget-jail.home.2rjus.net:6789 + log { + output file /var/log/caddy/nzbget.log + } + reverse_proxy http://nzbget-jail.home.2rjus.net:6789 } http://radarr.home.2rjus.net { - reverse_proxy http://radarr-jail.home.2rjus.net:7878 + log { + output file /var/log/caddy/radarr.log + } + reverse_proxy http://radarr-jail.home.2rjus.net:7878 } http://sonarr.home.2rjus.net { - reverse_proxy http://sonarr-jail.home.2rjus.net:8989 + log { + output file /var/log/caddy/sonarr.log + } + reverse_proxy http://sonarr-jail.home.2rjus.net:8989 } http://ha.home.2rjus.net { - reverse_proxy http://ha1.home.2rjus.net:8123 + log { + output file /var/log/caddy/ha.log + } + reverse_proxy http://ha1.home.2rjus.net:8123 } http://z2m.home.2rjus.net { - reverse_proxy http://ha1.home.2rjus.net:8080 + log { + output file /var/log/caddy/z2m.log + } + reverse_proxy http://ha1.home.2rjus.net:8080 } ''; };