.
This commit is contained in:
parent
1cb841bcb7
commit
48ab7eb8a6
1 changed files with 19 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue