Fix ldap listen, proxy protocol ports

This commit is contained in:
Sandro - 2023-11-07 23:10:26 +01:00
parent 6fbd88ad2b
commit 79d0246abc
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 6 additions and 6 deletions

View File

@ -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}";
}; };
}; };
}; };

View File

@ -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" ];
} }