oAuth2 Client - added options for oauth2 client section (#56)

This option set controls the provisioning options for users accessing the service via oAuth2
https://forgejo.org/docs/latest/admin/config-cheat-sheet/#oauth2-client-oauth2_client

Reviewed-on: #56
Reviewed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
muppeth 2024-09-01 14:37:29 +02:00
parent f65893e38a
commit 05f9e0a377
2 changed files with 11 additions and 1 deletions

View file

@ -31,6 +31,12 @@ forgejo_base_config:
forgejo_oauth2_config:
- 'JWT_SECRET = ' #41 random chars
forgejo_oauth2_client_config:
- 'ENABLE_AUTO_REGISTRATION = false'
- 'REGISTER_EMAIL_CONFIRM = false'
- 'ACCOUNT_LINKING = login'
- 'UPDATE_AVATAR = false'
forgejo_ui_config:
- 'THEMES = gitea-auto,gitea-light,gitea-dark,forgejo-auto,forgejo-light,forgejo-dark' # add only the default ones, not themes ones
- 'DEFAULT_THEME = gitea-dark'

View file

@ -8,6 +8,11 @@
{{ item }}
{% endfor %}
[oauth2_client]
{% for item in forgejo_oauth2_client_config %}
{{ item }}
{% endfor %}
[ui]
{% for item in forgejo_ui_config %}
{{ item }}
@ -65,7 +70,6 @@
{{ item }}
{% endfor %}
[session]
{% for item in forgejo_session_config %}
{{ item }}