Sonarr and Radarr proxy restored

This commit is contained in:
Filippo Berto 2022-12-20 00:30:50 +01:00
parent 5e70ab4bea
commit a4c67fe480
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -58,31 +58,18 @@ with lib; {
virtualHosts = virtualHosts =
let let
ssl = { enableACME = true; forceSSL = true; }; ssl = { enableACME = true; forceSSL = true; };
# loki = "172.23.254.55"; loki = "172.23.254.55";
in in
{ {
"unimi.bertof.net" = ssl // { locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;"; }; "unimi.bertof.net" = ssl // { locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;"; };
"home-assistant.bertof.net" = ssl // { "home-assistant.bertof.net" = ssl // {
locations."/" = { locations."/" = { proxyPass = "http://${loki}:8123/"; proxyWebsockets = true; };
proxyPass = "http://loki.local:8123/";
proxyWebsockets = true;
};
extraConfig = '' extraConfig = ''
proxy_pass_header Authorization; proxy_pass_header Authorization;
''; '';
}; };
# "radarr.bertof.net" = ssl // { "radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; };
# locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; "sonarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:8989/"; proxyWebsockets = true; }; };
# extraConfig = ''
# proxy_pass_header Authorization;
# '';
# };
# "sonarr.bertof.net" = ssl // {
# locations."/" = { proxyPass = "http://${loki}:8989/"; proxyWebsockets = true; };
# extraConfig = ''
# proxy_pass_header Authorization;
# '';
# };
}; };
}; };
openssh = { enable = true; openFirewall = true; }; openssh = { enable = true; openFirewall = true; };