This commit is contained in:
Chris Kruining 2025-09-18 10:47:08 +02:00
parent 1cb841bcb7
commit 48ab7eb8a6
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -1,6 +1,7 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
let let
inherit (builtins) readFile; inherit (builtins) readFile;
inherit (lib) mkOption types;
in in
{ {
_class = "clan.service"; _class = "clan.service";
@ -17,7 +18,23 @@ in
#============================================================================================================== #==============================================================================================================
roles.controller = { roles.controller = {
interface = { interface = {
options = {}; options = {
hostName = mkOption {
type = types.str;
example = "auth.example.com";
description = ''
The domain at which zitadel will be hosted
'';
};
displayName = mkOption {
type = types.str;
example = "auth.example.com";
description = ''
The Name of the zitadel organisation
'';
};
};
}; };
perInstance = { instanceName, settings, machine, roles, ... }: { perInstance = { instanceName, settings, machine, roles, ... }: {
@ -47,7 +64,7 @@ in
settings = { settings = {
Port = 9092; Port = 9092;
ExternalDomain = "auth.amarth.cloud"; ExternalDomain = settings.hostName;
ExternalPort = 443; ExternalPort = 443;
ExternalSecure = true; ExternalSecure = true;