FIX - PLATFORM DEPLOY: capture Synology real-domain baseline

This commit is contained in:
Codex
2026-05-14 14:27:56 +03:00
parent 61d373f076
commit 932b9bc7ec
7 changed files with 447 additions and 5 deletions
@@ -266,7 +266,19 @@
function getLauncherBaseUrl() {
const hostname = window.location.hostname;
const launcherHostname = hostname.startsWith("auth.") ? `launcher.${hostname.slice(5)}` : "launcher.local.nodedc";
const launcherHostnames = {
"id.nodedc.ru": "hub.nodedc.ru",
"auth.nodedc.ru": "hub.nodedc.ru",
"id.notdc.ru": "launcher.notdc.ru",
"auth.notdc.ru": "launcher.notdc.ru",
};
const launcherHostname =
launcherHostnames[hostname] ||
(hostname.startsWith("auth.")
? `launcher.${hostname.slice(5)}`
: hostname.startsWith("id.")
? `hub.${hostname.slice(3)}`
: "hub.nodedc.ru");
const port = window.location.port ? `:${window.location.port}` : "";
return `${window.location.protocol}//${launcherHostname}${port}/`;
@@ -691,8 +703,8 @@
try {
const url = new URL(rawUrl);
const allowedHosts = new Set([
"launcher.local.nodedc",
"launcher.local.notdc",
"hub.nodedc.ru",
"hub.notdc.ru",
"launcher.notdc.ru",
"platform.notdc.ru",
"notdc.ru",