fix: ports are numbers not strings

This commit is contained in:
silver 2023-05-21 12:23:57 +01:00
parent 81b41087fe
commit c42b13b990

View file

@ -188,7 +188,7 @@ Gonna use a priper nixos module for this
services.nginx.virtualHosts."${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}" = { services.nginx.virtualHosts."${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "skynet"; useACMEHost = "skynet";
locations."/".proxyPass = "http://localhost:${cfg.frontend.port}"; locations."/".proxyPass = "http://localhost:${toString cfg.frontend.port}";
}; };
virtualisation.arion = { virtualisation.arion = {
@ -206,7 +206,7 @@ Gonna use a priper nixos module for this
]; ];
ports = [ ports = [
"${cfg.frontend.port}:80/tcp" "${toString cfg.frontend.port}:80/tcp"
]; ];
}; };
}; };