From e40c160a551ef2c3ca2e64f24341c7a8ea7b4cfb Mon Sep 17 00:00:00 2001
From: xeruf <27jf@pm.me>
Date: Fri, 16 Dec 2022 14:06:38 +0000
Subject: [PATCH] code: improve oauth and registration settings

---
 basic/apps/code/gitea-values-configmap.yaml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/basic/apps/code/gitea-values-configmap.yaml b/basic/apps/code/gitea-values-configmap.yaml
index f758d74..ba3250f 100644
--- a/basic/apps/code/gitea-values-configmap.yaml
+++ b/basic/apps/code/gitea-values-configmap.yaml
@@ -20,23 +20,28 @@ data:
           hosts:
             - "code.${domain}"
     gitea:
+      # https://gitea.com/gitea/helm-chart/src/branch/main#oauth2-settings
       oauth:
         - name: Stackspin
           provider: "openidConnect"
           key: "${client_id}"
           secret: "${client_secret}"
           autoDiscoverUrl: "https://sso.${domain}/.well-known/openid-configuration"
+          iconUrl: "https://dashboard.${domain}/favicon-32x32.png"
+      # https://docs.gitea.io/en-us/config-cheat-sheet
       config:
-        # https://docs.gitea.io/en-us/config-cheat-sheet
         repository:
           DEFAULT_PUSH_CREATE_PRIVATE: false
           ENABLE_PUSH_CREATE_USER: true
           ENABLE_PUSH_CREATE_ORG: true
         server:
           ROOT_URL: "https://code.${domain}"
-          # START_SSH_SERVER: true
+          LANDING_PAGE: login
+        openid:
+          #ENABLE_OPENID_SIGNUP: true
         service:
-          DISABLE_REGISTRATION: true
+          ENABLE_BASIC_AUTHENTICATION: false
+          #DISABLE_REGISTRATION: true
         log:
           LEVEL: "Trace"
     persistence:
-- 
GitLab