diff --git a/hosts/auth/default.nix b/hosts/auth/default.nix index 6590c57b..c9c8dc29 100644 --- a/hosts/auth/default.nix +++ b/hosts/auth/default.nix @@ -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}"; }; }; }; diff --git a/lib/nginx.nix b/lib/nginx.nix index d8a02e16..98704717 100644 --- a/lib/nginx.nix +++ b/lib/nginx.nix @@ -14,12 +14,12 @@ _: } { addr = "[::]"; - port = 81; + port = 8080; extraParameters = [ "proxy_protocol" ]; } { addr = "[::]"; - port = 444; + port = 8443; ssl = true; extraParameters = [ "proxy_protocol" ]; }