From 047ec881889dec46a5e0f3db2e7f01a6bbe80987 Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Tue, 31 Oct 2023 17:01:01 -0400 Subject: [PATCH] provide the option to allow for registration, so that SSO could be used with Keycloak --- packages/gitea/gitea-values.yaml | 2 +- packages/gitea/zarf.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/gitea/gitea-values.yaml b/packages/gitea/gitea-values.yaml index 8ff5ee2008..a917782bac 100644 --- a/packages/gitea/gitea-values.yaml +++ b/packages/gitea/gitea-values.yaml @@ -25,7 +25,7 @@ gitea: security: INSTALL_LOCK: true service: - DISABLE_REGISTRATION: true + DISABLE_REGISTRATION: "###ZARF_VAR_GIT_SERVER_DISABLE_REGISTRATION###" repository: ENABLE_PUSH_CREATE_USER: true FORCE_PRIVATE: true diff --git a/packages/gitea/zarf.yaml b/packages/gitea/zarf.yaml index 08652d3dac..be2fc36143 100644 --- a/packages/gitea/zarf.yaml +++ b/packages/gitea/zarf.yaml @@ -34,6 +34,10 @@ variables: - name: GIT_SERVER_REPLICA_COUNT description: The number of git server replicas to deploy default: "1" + + - name: GIT_SERVER_DISABLE_REGISTRATION + description: Disables the ability to register new users + default: true constants: - name: GITEA_IMAGE