fix: properly use the port
This commit is contained in:
parent
b15b07ae36
commit
6e58eac8c1
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue