server zitadel: init
This commit is contained in:
parent
71b64d8edc
commit
7d59f3cdb1
5 changed files with 44 additions and 0 deletions
26
system/server/zitadel.nix
Normal file
26
system/server/zitadel.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
ExternalDomain = "z.jsw.tf";
|
||||
Port = 9000;
|
||||
in {
|
||||
config =
|
||||
lib.mkIf config.niksos.server
|
||||
{
|
||||
services.caddy.virtualHosts.${ExternalDomain}.extraConfig = ''
|
||||
reverse_proxy localhost:${builtins.toString Port}
|
||||
'';
|
||||
|
||||
services.zitadel = {
|
||||
enable = true;
|
||||
masterKeyFile = "/etc/default/zitadel";
|
||||
settings = {
|
||||
inherit Port ExternalDomain;
|
||||
ExternalPort = 443;
|
||||
};
|
||||
extraSettingsPaths = [config.age.secrets.zitadel.path];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue