Setup OpenID

This commit is contained in:
Luke Murphy 2020-03-23 13:09:41 +01:00
parent 72cbc3e003
commit 9eb4dc635a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 0 deletions

View File

@ -101,3 +101,5 @@
SECRET_KEY: "{{ secret_key}}"
USER_GID: "{{ gitea_user_guid }}"
USER_UID: "{{ gitea_user_uid }}"
ENABLE_OPENID_SIGNIN: "true"
ENABLE_OPENID_SIGNUP: "false"

View File

@ -67,6 +67,10 @@ setup_app_ini() {
crudini --set "$app_ini" security SECRET_KEY "${SECRET_KEY}"
crudini --set "$app_ini" oauth2 JWT_SECRET "${JWT_SECRET}"
crudini --set "$app_ini" openid ENABLE_OPENID_SIGNIN "${ENABLE_OPENID_SIGNIN}"
crudini --set "$app_ini" openid ENABLE_OPENID_SIGNUP "${ENABLE_OPENID_SIGNUP}"
}
main() {