removed the temporary nginx config and moved it to the infra layer

This commit is contained in:
Chris Kruining 2025-10-20 06:13:41 +00:00
parent 11512877f6
commit 1e3ee88bbe
2 changed files with 29 additions and 31 deletions

View file

@ -32,21 +32,6 @@ in
enable = true;
openFirewall = true;
};
services.nginx = {
enable = true;
virtualHosts = {
"amarth.cloud" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
};
};
};
};
};
};
};

View file

@ -38,7 +38,35 @@ in
};
perInstance = { instanceName, settings, machine, roles, ... }: {
nixosModule = { config, pkgs, ... }: {
nixosModule = { config, pkgs, inputs, system, ... }:
let
terraform = inputs.terranix.lib.terranixConfiguration {
inherit pkgs system;
modules = [
({ config, ... }: {
config = {
terraform.required_providers.zitadel = {
source = "zitadel/zitadel";
version = "2.2.0";
};
provider.zitadel = {
domain = "localhost";
insecure = "true";
port = "8080";
jwt_profile_file = "local-token";
};
resource.zitadel_human_user.default = {
org_id = "";
};
};
})
];
};
in
{
clan.core.vars.generators.zitadel = {
share = false;
@ -129,21 +157,6 @@ in
}
];
};
services.nginx = {
enable = true;
virtualHosts = {
${settings.hostName} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:9092";
};
};
};
};
};
};
};