Fix ldap listen, proxy protocol ports
This commit is contained in:
parent
6fbd88ad2b
commit
79d0246abc
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, libC, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
c3d2.deployment.server = "server10";
|
c3d2.deployment.server = "server10";
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."auth.c3d2.de" = {
|
virtualHosts."auth.c3d2.de" = {
|
||||||
default = true;
|
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
listen = libC.defaultListen;
|
||||||
locations = {
|
locations = {
|
||||||
"/".proxyPass = "http://localhost:${toString config.services.portunus.port}";
|
"/".proxyPass = "http://127.0.0.1:${toString config.services.portunus.port}";
|
||||||
"/dex".proxyPass = "http://localhost:${toString config.services.portunus.dex.port}";
|
"/dex".proxyPass = "http://127.0.0.1:${toString config.services.portunus.dex.port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,12 +14,12 @@ _:
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
addr = "[::]";
|
addr = "[::]";
|
||||||
port = 81;
|
port = 8080;
|
||||||
extraParameters = [ "proxy_protocol" ];
|
extraParameters = [ "proxy_protocol" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
addr = "[::]";
|
addr = "[::]";
|
||||||
port = 444;
|
port = 8443;
|
||||||
ssl = true;
|
ssl = true;
|
||||||
extraParameters = [ "proxy_protocol" ];
|
extraParameters = [ "proxy_protocol" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue