FIX - PLATFORM DEPLOY: capture Synology real-domain baseline
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user