services: use explicit loopback address w/ vhosts

Otherwise it can result in failure to proxy requests sometimes...
This commit is contained in:
Bruno BELANYI 2021-03-27 15:48:49 +00:00
parent 9155e139d4
commit 7fc3a74329
10 changed files with 11 additions and 11 deletions

View file

@ -26,7 +26,7 @@ in
forceSSL = true;
useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString jackettPort}/";
locations."/".proxyPass = "http://127.0.0.1:${toString jackettPort}/";
};
services.nzbhydra2 = lib.mkIf cfg.nzbhydra.enable {
@ -38,7 +38,7 @@ in
forceSSL = true;
useACMEHost = domain;
locations."/".proxyPass = "http://localhost:${toString nzbhydraPort}/";
locations."/".proxyPass = "http://127.0.0.1:${toString nzbhydraPort}/";
};
};
}