removed the temporary nginx config and moved it to the infra layer
This commit is contained in:
parent
11512877f6
commit
1e3ee88bbe
2 changed files with 29 additions and 31 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue