|
@@ -49,8 +49,18 @@ c['www']['auth'] = util.GiteaAuth( |
|
|
client_id='{{buildbot_gitea_auth_client_id}}', |
|
|
client_id='{{buildbot_gitea_auth_client_id}}', |
|
|
client_secret='{{buildbot_gitea_auth_client_secret}}', |
|
|
client_secret='{{buildbot_gitea_auth_client_secret}}', |
|
|
) |
|
|
) |
|
|
|
|
|
c['www']['authz'] = util.Authz( |
|
|
|
|
|
allowRules=[ |
|
|
|
|
|
#util.AnyControlEndpointMatcher(role="admins"), |
|
|
|
|
|
util.AnyEndpointMatcher(role="admins"), |
|
|
|
|
|
], |
|
|
|
|
|
roleMatchers=[ |
|
|
|
|
|
util.RolesFromUsername(roles=["admins"], usernames={{buildbot_admin_usernames|to_json}}), |
|
|
|
|
|
] |
|
|
|
|
|
) |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c['db'] = { |
|
|
c['db'] = { |
|
|
'db_url' : "{{buildbot_database_url}}", |
|
|
'db_url' : "{{buildbot_database_url}}", |
|
|
} |
|
|
} |
|
|