feat(core): persist viewer state and integrate Cesium services and profiles
This commit is contained in:
@@ -18,7 +18,7 @@ def main():
|
||||
parser.add_argument("--version", required=True)
|
||||
parser.add_argument(
|
||||
"--kind",
|
||||
choices=("node", "vps-arnavi", "vps-wireguard", "vps-netbird", "vps-librespeed"),
|
||||
choices=("node", "vps-arnavi", "vps-wireguard", "vps-netbird", "vps-librespeed", "vps-egress"),
|
||||
required=True,
|
||||
)
|
||||
args = parser.parse_args()
|
||||
@@ -88,6 +88,16 @@ def main():
|
||||
"Скопируйте с VPS файл /var/lib/ndc-librespeed-vps/mission-core-librespeed.json и выберите его в этом окне. Затем нажмите «Подключить службу».",
|
||||
],
|
||||
)
|
||||
if args.kind == "vps-egress":
|
||||
value.update(
|
||||
label="Маршрутизация трафика",
|
||||
os="Ubuntu Server 24.04 LTS · x86-64",
|
||||
instructions=[
|
||||
"Скопируйте установщик на VPS: sudo python3 mission-core-egress-vps.pyz plan --host АДРЕС",
|
||||
"Примените проверенный план: sudo python3 mission-core-egress-vps.pyz apply --host АДРЕС --expect ХЕШ_ПЛАНА",
|
||||
"Подключите службу файлом /var/lib/ndc-egress-vps/mission-core-egress.json.",
|
||||
],
|
||||
)
|
||||
temporary = root / (args.kind + ".json.new")
|
||||
temporary.write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
temporary.chmod(0o600)
|
||||
|
||||
Reference in New Issue
Block a user