From a2870a654d00ffa06bc5c9369559676cc9b68b32 Mon Sep 17 00:00:00 2001 From: Akumatic Date: Tue, 28 Jan 2025 21:53:00 +0100 Subject: [PATCH] Change OAuth2 username to 'nickname' & enable registration in case auto registration fails --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 496a2d1..e1bcd2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,9 +42,9 @@ services: GITEA__oauth2_client__REGISTER_EMAIL_CONFIRM: false GITEA__oauth2_client__ENABLE_AUTO_REGISTRATION: true GITEA__oauth2_client__ACCOUNT_LINKING: login - GITEA__oauth2_client__USERNAME: preferred_username + GITEA__oauth2_client__USERNAME: nickname GITEA__openid__ENABLE_OPENID_SIGNIN: false - GITEA__service__DISABLE_REGISTRATION: true + GITEA__service__DISABLE_REGISTRATION: false GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION: true GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION: false GITEA__repository__MAX_CREATION_LIMIT: 0