customize
This commit is contained in:
parent
6c7f961674
commit
bae787a244
15
master.cfg
15
master.cfg
@ -172,6 +172,13 @@ c["titleURL"] = "https://gitea.parrrate.ru/PTV/radn-rs"
|
||||
|
||||
c["buildbotURL"] = os.environ.get("BUILDBOT_WEB_URL", "http://localhost:8010/")
|
||||
|
||||
|
||||
class GiteaAuth(OAuth2Auth):
|
||||
name = "Gitea"
|
||||
authUri = "https://gitea.parrrate.ru/login/oauth/authorize"
|
||||
tokenUri = "https://gitea.parrrate.ru/login/oauth/access_token"
|
||||
|
||||
|
||||
# minimalistic config to activate new web UI
|
||||
c["www"] = {
|
||||
"port": os.environ.get("BUILDBOT_WEB_PORT", 8010),
|
||||
@ -180,13 +187,7 @@ c["www"] = {
|
||||
"console_view": {},
|
||||
},
|
||||
"change_hook_dialects": {},
|
||||
"auth": OAuth2Auth(
|
||||
CLIENT_ID,
|
||||
CLIENT_SECRET,
|
||||
name="Gitea",
|
||||
authUri="https://gitea.parrrate.ru/login/oauth/authorize",
|
||||
tokenUri="https://gitea.parrrate.ru/login/oauth/access_token",
|
||||
),
|
||||
"auth": GiteaAuth(CLIENT_ID, CLIENT_SECRET),
|
||||
}
|
||||
if GITEA_SECRET:
|
||||
c["www"]["change_hook_dialects"]["gitea"] = {
|
||||
|
Loading…
Reference in New Issue
Block a user