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/")
|
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
|
# minimalistic config to activate new web UI
|
||||||
c["www"] = {
|
c["www"] = {
|
||||||
"port": os.environ.get("BUILDBOT_WEB_PORT", 8010),
|
"port": os.environ.get("BUILDBOT_WEB_PORT", 8010),
|
||||||
@ -180,13 +187,7 @@ c["www"] = {
|
|||||||
"console_view": {},
|
"console_view": {},
|
||||||
},
|
},
|
||||||
"change_hook_dialects": {},
|
"change_hook_dialects": {},
|
||||||
"auth": OAuth2Auth(
|
"auth": GiteaAuth(CLIENT_ID, CLIENT_SECRET),
|
||||||
CLIENT_ID,
|
|
||||||
CLIENT_SECRET,
|
|
||||||
name="Gitea",
|
|
||||||
authUri="https://gitea.parrrate.ru/login/oauth/authorize",
|
|
||||||
tokenUri="https://gitea.parrrate.ru/login/oauth/access_token",
|
|
||||||
),
|
|
||||||
}
|
}
|
||||||
if GITEA_SECRET:
|
if GITEA_SECRET:
|
||||||
c["www"]["change_hook_dialects"]["gitea"] = {
|
c["www"]["change_hook_dialects"]["gitea"] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user