Install and update URLs: GitHub -> Gitea (GitHub repo does not exist, 404)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
6
app.py
6
app.py
@@ -39,7 +39,7 @@ SECRET_FILE = f"{PANEL_DIR}/.secret_key"
|
||||
WG_CONFIG = "/etc/wireguard/wg0.conf"
|
||||
# Distribution: Gitea first (GitHub account is unavailable since 23.10.2026), GitHub fallback
|
||||
PCA_GIT = "https://git.bobyrev.com/PCA/PCA_Phobos"
|
||||
PCA_GH_RAW = "https://raw.githubusercontent.com/adleibzon-rgb/PCA_Phobos"
|
||||
PCA_GH_RAW = "https://git.bobyrev.com/PCA/PCA_Phobos/raw/branch"
|
||||
APK_TAG = "v1.4.10"
|
||||
WARP_DIR = f"{PHOBOS_DIR}/server/warp"
|
||||
WARP_CUSTOM_PROFILE_FILE = f"{WARP_DIR}/custom-profile.conf"
|
||||
@@ -2724,7 +2724,7 @@ def _fetch_channel_file(channel, name):
|
||||
except Exception:
|
||||
pass
|
||||
if channel == "stable": # public: GitHub first, Gitea fallback (09.33)
|
||||
g = subprocess.run(["curl", "-fsSL", "-m", "10", f"https://raw.githubusercontent.com/adleibzon-rgb/PCA_Phobos/main/{name}?cb={int(time.time())}"],
|
||||
g = subprocess.run(["curl", "-fsSL", "-m", "10", f"https://git.bobyrev.com/PCA/PCA_Phobos/raw/branch/main/{name}?cb={int(time.time())}"],
|
||||
capture_output=True, text=True, timeout=15)
|
||||
if g.returncode == 0 and g.stdout:
|
||||
return g.stdout
|
||||
@@ -4165,7 +4165,7 @@ def settings_page():
|
||||
<b style="color:#22c55e">stable</b> — {tr("стабильная","stable")} ·
|
||||
<b style="color:#eab308">beta</b> — {tr("тест","testing")} ·
|
||||
<b style="color:#f97316">dev</b> — {tr("разработка","development")}.
|
||||
{tr("stable — открытый, берётся с GitHub (adleibzon-rgb), запасной — git.bobyrev.com. beta и dev — для подписчиков Boosty: нужен токен подписчика (поле ниже).","stable is open, served from GitHub (adleibzon-rgb) with git.bobyrev.com as fallback. beta and dev are for Boosty subscribers and need a subscriber token (field below).")}</p>
|
||||
{tr("stable — открытый, берётся с git.bobyrev.com. beta и dev — для подписчиков Boosty: нужен токен подписчика (поле ниже).","stable is open, served from GitHub (adleibzon-rgb) with git.bobyrev.com as fallback. beta and dev are for Boosty subscribers and need a subscriber token (field below).")}</p>
|
||||
<form method="post" class="form-row" style="margin-bottom:8px">
|
||||
<input type="hidden" name="action" value="save_token">
|
||||
<input type="password" name="gh_token" placeholder="{tr('токен подписчика (для beta/dev)','subscriber token (for beta/dev)')}" style="width:240px" autocomplete="off">
|
||||
|
||||
Reference in New Issue
Block a user