From a4c67fe4805361f90555e74acaad563e5e1ed47f Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 20 Dec 2022 00:30:50 +0100 Subject: [PATCH] Sonarr and Radarr proxy restored --- baldur/configuration.nix | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/baldur/configuration.nix b/baldur/configuration.nix index d80faca..819a132 100644 --- a/baldur/configuration.nix +++ b/baldur/configuration.nix @@ -58,31 +58,18 @@ with lib; { virtualHosts = let ssl = { enableACME = true; forceSSL = true; }; - # loki = "172.23.254.55"; + loki = "172.23.254.55"; in { "unimi.bertof.net" = ssl // { locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;"; }; "home-assistant.bertof.net" = ssl // { - locations."/" = { - proxyPass = "http://loki.local:8123/"; - proxyWebsockets = true; - }; + locations."/" = { proxyPass = "http://${loki}:8123/"; proxyWebsockets = true; }; extraConfig = '' proxy_pass_header Authorization; ''; }; - # "radarr.bertof.net" = ssl // { - # locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; - # extraConfig = '' - # proxy_pass_header Authorization; - # ''; - # }; - # "sonarr.bertof.net" = ssl // { - # locations."/" = { proxyPass = "http://${loki}:8989/"; proxyWebsockets = true; }; - # extraConfig = '' - # proxy_pass_header Authorization; - # ''; - # }; + "radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; }; + "sonarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:8989/"; proxyWebsockets = true; }; }; }; }; openssh = { enable = true; openFirewall = true; };