services: use explicit loopback address w/ vhosts
Otherwise it can result in failure to proxy requests sometimes...
This commit is contained in:
parent
9155e139d4
commit
7fc3a74329
|
@ -46,7 +46,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}/";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}/";
|
||||
};
|
||||
|
||||
my.services.backup = {
|
||||
|
|
|
@ -113,7 +113,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||
};
|
||||
|
||||
# Docker runner
|
||||
|
|
|
@ -64,7 +64,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}/";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}/";
|
||||
};
|
||||
|
||||
my.services.backup = {
|
||||
|
|
|
@ -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}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
useACMEHost = domain;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8096/";
|
||||
proxyPass = "http://127.0.0.1:8096/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.privatePort}/";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.privatePort}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:3000/";
|
||||
locations."/".proxyPass = "http://127.0.0.1:3000/";
|
||||
};
|
||||
|
||||
my.services.backup = {
|
||||
|
|
|
@ -28,7 +28,7 @@ let
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${builtins.toString port}/";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString port}/";
|
||||
})
|
||||
ports);
|
||||
in
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString port}";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ in
|
|||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.privatePort}";
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.privatePort}";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
|
|
Loading…
Reference in a new issue