diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-10-27 23:49:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 23:49:49 +0200 |
commit | a9d001fd4af2df7f5702bbdb28a0081c855cb625 (patch) | |
tree | b7e5468b8acbef72373a80eca7aceaf58d25029f /nixos | |
parent | 8269bc643190ccc00c2493355bb33a94d4026348 (diff) | |
parent | 09794b1ee4fc874ff8c109385159a3eb08f24dc1 (diff) |
Merge pull request #260877 from moritzrickert/plausible-registration-invite-only
nixos/plausible: add invite only registrations
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/plausible.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/plausible.nix b/nixos/modules/services/web-apps/plausible.nix index e5deb6cf511f9..576b54a7edf24 100644 --- a/nixos/modules/services/web-apps/plausible.nix +++ b/nixos/modules/services/web-apps/plausible.nix @@ -78,9 +78,9 @@ in { server = { disableRegistration = mkOption { default = true; - type = types.bool; + type = types.enum [true false "invite_only"]; description = lib.mdDoc '' - Whether to prohibit creating an account in plausible's UI. + Whether to prohibit creating an account in plausible's UI or allow on `invite_only`. ''; }; secretKeybaseFile = mkOption { @@ -209,7 +209,7 @@ in { # Configuration options from # https://plausible.io/docs/self-hosting-configuration PORT = toString cfg.server.port; - DISABLE_REGISTRATION = boolToString cfg.server.disableRegistration; + DISABLE_REGISTRATION = if isBool cfg.server.disableRegistration then boolToString cfg.server.disableRegistration else cfg.server.disableRegistration; RELEASE_TMP = "/var/lib/plausible/tmp"; # Home is needed to connect to the node with iex |