.
This commit is contained in:
parent
1cb841bcb7
commit
48ab7eb8a6
1 changed files with 19 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
inherit (builtins) readFile;
|
||||
inherit (lib) mkOption types;
|
||||
in
|
||||
{
|
||||
_class = "clan.service";
|
||||
|
|
@ -17,7 +18,23 @@ in
|
|||
#==============================================================================================================
|
||||
roles.controller = {
|
||||
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, ... }: {
|
||||
|
|
@ -47,7 +64,7 @@ in
|
|||
settings = {
|
||||
Port = 9092;
|
||||
|
||||
ExternalDomain = "auth.amarth.cloud";
|
||||
ExternalDomain = settings.hostName;
|
||||
ExternalPort = 443;
|
||||
ExternalSecure = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue