mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2024-12-21 23:03:13 -05:00
Add staging url
This commit is contained in:
parent
602400c384
commit
76ca5d9271
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ import sys
|
|||
page_contents = sys.stdin.read()
|
||||
|
||||
base_url = "https://projects.blender.org"
|
||||
staging_base_url = "https://projects.staging.blender.org"
|
||||
uatest_base_url = "https://uatest.projects.blender.org"
|
||||
local_url = "http://localhost:3000"
|
||||
placeholder_url = "https://placeholder.org"
|
||||
|
@ -20,6 +21,8 @@ placeholder_url = "https://placeholder.org"
|
|||
gitea_prefix = os.environ.get("GITEA_PREFIX_SRC", "")
|
||||
if gitea_prefix.startswith(base_url):
|
||||
gitea_prefix = gitea_prefix[len(base_url):]
|
||||
if gitea_prefix.startswith(staging_base_url):
|
||||
gitea_prefix = gitea_prefix[len(staging_base_url):]
|
||||
if gitea_prefix.startswith(uatest_base_url):
|
||||
gitea_prefix = gitea_prefix[len(uatest_base_url):]
|
||||
if gitea_prefix.startswith(local_url):
|
||||
|
|
Loading…
Reference in a new issue