Browse Source

gitea auth

master
parent
commit
8d9b95884a
2 changed files with 10 additions and 0 deletions
  1. +2
    -0
      defaults/main.yaml
  2. +8
    -0
      templates/buildbot/master.cfg.j2

+ 2
- 0
defaults/main.yaml View File

@@ -19,3 +19,5 @@ buildbot_title: Buildbot
buildbot_title_url: "{{ buildbot_base_url }}"

buildbot_base_url: https://{{buildbot_server_name}}/

buildbot_with_gitea_auth: false

+ 8
- 0
templates/buildbot/master.cfg.j2 View File

@@ -43,6 +43,14 @@ c['www'] = dict(
},
)

{% if buildbot_with_gitea_auth %}
c['www']['auth'] = util.GiteaAuth(
endpoint='{{buildbot_gitea_auth_endpoint}}',
client_id='{{buildbot_gitea_auth_client_id}}',
client_secret='{{buildbot_gitea_auth_client_secret}}',
)
{% endif %}

c['db'] = {
'db_url' : "{{buildbot_database_url}}",
}


Loading…
Cancel
Save