From 62a1d699f40c2fa85f6027840dddb7854125d137 Mon Sep 17 00:00:00 2001 From: Louis Pearson Date: Tue, 9 Jan 2024 02:43:17 -0700 Subject: [PATCH] feat: expose *arr servers on tailnet --- configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configuration.nix b/configuration.nix index 6954031..77d7184 100644 --- a/configuration.nix +++ b/configuration.nix @@ -465,6 +465,22 @@ } redir / /ariang/#!/settings/rpc/set?protocol=wss&host=aria.samsehu.perli.casa&port=443&secret=YXJpYTJycGM=&interface=jsonrpc ''; + + virtualHosts."arr.samsehu.perli.casa".extraConfig = '' + bind 100.64.0.3 + handle_path /lidarr* { + reverse_proxy localhost:8686 + } + handle_path /radarr* { + reverse_proxy localhost:7878 + } + handle_path /readarr* { + reverse_proxy localhost:8787 + } + handle_path /sonarr* { + reverse_proxy localhost:8989 + } + ''; }; # Headscale for access to the network while away from home @@ -495,6 +511,7 @@ { name = "jellyfin.samsehu.perli.casa"; type = "A"; value = "100.64.0.3"; } { name = "kavita.samsehu.perli.casa"; type = "A"; value = "100.64.0.3"; } { name = "aria.samsehu.perli.casa"; type = "A"; value = "100.64.0.3"; } + { name = "arr.samsehu.perli.casa"; type = "A"; value = "100.64.0.3"; } ]; };