removed listenaddr
This commit is contained in:
@@ -15,7 +15,7 @@ in
|
|||||||
group = "piracy";
|
group = "piracy";
|
||||||
};
|
};
|
||||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||||
setup.proxy cfg {
|
setup.proxy {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = cfg.local;
|
proxyPass = cfg.local;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|||||||
@@ -41,14 +41,13 @@ let
|
|||||||
default = "${config.my.servers.${name}.hostName}" == config.my.mainServer;
|
default = "${config.my.servers.${name}.hostName}" == config.my.mainServer;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
proxy = cfg: locations: {
|
proxy = locations: {
|
||||||
inherit locations;
|
inherit locations;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
http2 = true;
|
http2 = true;
|
||||||
# listenAddresses = [ cfg.ip ];
|
|
||||||
};
|
};
|
||||||
proxyReverse = cfg: proxy cfg { "/".proxyPass = "http://${cfg.ip}:${toString cfg.port}/"; };
|
proxyReverse = cfg: proxy { "/".proxyPass = "http://${cfg.ip}:${toString cfg.port}/"; };
|
||||||
proxyReverseFix =
|
proxyReverseFix =
|
||||||
cfg:
|
cfg:
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user