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";
@ -18,12 +18,12 @@
nginx = {
enable = true;
virtualHosts."auth.c3d2.de" = {
default = true;
forceSSL = true;
enableACME = true;
listen = libC.defaultListen;
locations = {
"/".proxyPass = "http://localhost:${toString config.services.portunus.port}";
"/dex".proxyPass = "http://localhost:${toString config.services.portunus.dex.port}";
"/".proxyPass = "http://127.0.0.1:${toString config.services.portunus.port}";
"/dex".proxyPass = "http://127.0.0.1:${toString config.services.portunus.dex.port}";
};
};
};

View File

@ -14,12 +14,12 @@ _:
}
{
addr = "[::]";
port = 81;
port = 8080;
extraParameters = [ "proxy_protocol" ];
}
{
addr = "[::]";
port = 444;
port = 8443;
ssl = true;
extraParameters = [ "proxy_protocol" ];
}