fix: properly use the port

This commit is contained in:
silver 2023-05-21 12:05:19 +01:00
parent b15b07ae36
commit 6e58eac8c1

View file

@ -35,9 +35,9 @@ Gonna use a priper nixos module for this
default = "sso"; default = "sso";
}; };
port = mkOption { frontend.port = mkOption {
type = types.port; type = types.port;
default = 8080; default = 8888;
}; };
base = mkOption { base = mkOption {
@ -157,7 +157,7 @@ Gonna use a priper nixos module for this
services.nginx.virtualHosts."${cfg.subdomain}.skynet.ie" = { services.nginx.virtualHosts."${cfg.subdomain}.skynet.ie" = {
forceSSL = true; forceSSL = true;
useACMEHost = "skynet"; useACMEHost = "skynet";
locations."/".proxyPass = "http://localhost:8888"; locations."/".proxyPass = "http://localhost:${cfg.frontend.port}";
}; };
virtualisation.arion = { virtualisation.arion = {
@ -175,7 +175,7 @@ Gonna use a priper nixos module for this
]; ];
ports = [ ports = [
"8888:80/tcp" "${cfg.frontend.port}:80/tcp"
]; ];
}; };
}; };