fix: restore m.tkmind.cn public base

This commit is contained in:
john
2026-07-03 17:27:51 +08:00
parent 145bf4eb01
commit cd2cbdbe78
7 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -267,7 +267,7 @@ async function writeMetadata() {
'', '',
'export NODE_ENV=production', 'export NODE_ENV=production',
'export H5_PORT="${H5_PORT:-8081}"', 'export H5_PORT="${H5_PORT:-8081}"',
'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}"', 'export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://m.tkmind.cn}"',
'export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"', 'export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"',
'export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"', 'export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"',
'export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"', 'export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"',
@@ -385,10 +385,10 @@ async function writeMetadata() {
' H5_USERS_ROOT / MINDSPACE_STORAGE_ROOT / MEMIND_SHARED_PUBLISH_ROOT', ' H5_USERS_ROOT / MINDSPACE_STORAGE_ROOT / MEMIND_SHARED_PUBLISH_ROOT',
'', '',
'Deployment and operations transport:', 'Deployment and operations transport:',
' H5 public domain: mm.tkmind.cn', ' H5 public domain: m.tkmind.cn',
' Current public path: mm.tkmind.cn -> local nginx -> Portal :8081', ' Current public path: m.tkmind.cn -> 105 nginx -> 103 Portal :8081',
' Legacy rollback-only path: m.tkmind.cn -> 105 nginx -> reverse SSH tunnel -> Portal :8081', ' Test-only path: mm.tkmind.cn -> 105 nginx -> local/103 test routing when explicitly enabled.',
' Future H5 traffic must not depend on 105 forwarding unless explicitly rolling back.', ' Production H5 and WeChat links should use m.tkmind.cn unless a test rollout explicitly overrides H5_PUBLIC_BASE_URL.',
'', '',
'Streaming runtime operations:', 'Streaming runtime operations:',
' node scripts/check-stream-runtime.mjs', ' node scripts/check-stream-runtime.mjs',
@@ -410,7 +410,7 @@ async function writeMetadata() {
' node scripts/runtime-worker-drain.mjs undrain goosed-3', ' node scripts/runtime-worker-drain.mjs undrain goosed-3',
' node scripts/check-tool-runtime.mjs', ' node scripts/check-tool-runtime.mjs',
' node scripts/check-agent-code-run-entry.mjs', ' node scripts/check-agent-code-run-entry.mjs',
' curl -sk https://mm.tkmind.cn/api/runtime/status # includes toolRuntime.queue', ' curl -sk https://m.tkmind.cn/api/runtime/status # includes toolRuntime.queue',
' node scripts/agent-run-worker.mjs --status', ' node scripts/agent-run-worker.mjs --status',
' node scripts/agent-run-worker.mjs --once', ' node scripts/agent-run-worker.mjs --once',
' bash scripts/install-agent-run-worker-agent.sh # installs disabled by default', ' bash scripts/install-agent-run-worker-agent.sh # installs disabled by default',
+1 -1
View File
@@ -115,7 +115,7 @@ const envFile = process.env.MEMIND_ENV_FILE || path.join(process.cwd(), '.env');
loadEnvFile(envFile); loadEnvFile(envFile);
const distRoot = path.resolve(process.env.MEMIND_H5_DIST_ROOT || path.join(process.cwd(), 'dist')); const distRoot = path.resolve(process.env.MEMIND_H5_DIST_ROOT || path.join(process.cwd(), 'dist'));
const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, '');
const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } }); const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } });
async function fetchJson(pathname) { async function fetchJson(pathname) {
+1 -1
View File
@@ -19,7 +19,7 @@ function loadEnvFile(filePath) {
loadEnvFile(path.join(process.cwd(), '.env')); loadEnvFile(path.join(process.cwd(), '.env'));
const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } }); const insecureDispatcher = new Agent({ connect: { rejectUnauthorized: false } });
const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, '');
const targets = (process.env.TKMIND_API_TARGETS || process.env.TKMIND_API_TARGET || '') const targets = (process.env.TKMIND_API_TARGETS || process.env.TKMIND_API_TARGET || '')
.split(',') .split(',')
.map((value) => value.trim()) .map((value) => value.trim())
+1 -1
View File
@@ -13,7 +13,7 @@ fi
export NODE_ENV=production export NODE_ENV=production
export H5_PORT="${H5_PORT:-8081}" export H5_PORT="${H5_PORT:-8081}"
export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://mm.tkmind.cn}" export H5_PUBLIC_BASE_URL="${H5_PUBLIC_BASE_URL:-https://m.tkmind.cn}"
export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}" export TKMIND_API_TARGETS="${TKMIND_API_TARGETS:-https://127.0.0.1:18006,https://127.0.0.1:18007,https://127.0.0.1:18008,https://127.0.0.1:18009}"
export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}" export TKMIND_API_TARGET="${TKMIND_API_TARGET:-https://127.0.0.1:18006}"
export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}" export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1:-https://127.0.0.1:18007}"
+1 -1
View File
@@ -289,7 +289,7 @@ if (args.help) {
process.exit(0); process.exit(0);
} }
const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://mm.tkmind.cn').replace(/\/$/, ''); const publicBase = (process.env.H5_PUBLIC_BASE_URL || 'https://m.tkmind.cn').replace(/\/$/, '');
const redisUrl = process.env.MEMIND_RUNTIME_REDIS_URL || 'redis://127.0.0.1:6379/0'; const redisUrl = process.env.MEMIND_RUNTIME_REDIS_URL || 'redis://127.0.0.1:6379/0';
const namespace = process.env.MEMIND_RUNTIME_REDIS_NAMESPACE || 'memind:runtime'; const namespace = process.env.MEMIND_RUNTIME_REDIS_NAMESPACE || 'memind:runtime';
const mindSpaceRoots = uniquePaths([ const mindSpaceRoots = uniquePaths([
+2 -2
View File
@@ -23,12 +23,12 @@ const MENU = {
{ {
type: 'view', type: 'view',
name: 'TKMind', name: 'TKMind',
url: 'https://mm.tkmind.cn', url: 'https://m.tkmind.cn',
}, },
{ {
type: 'view', type: 'view',
name: 'M空间', name: 'M空间',
url: 'https://mm.tkmind.cn/space', url: 'https://m.tkmind.cn/space',
}, },
{ {
type: 'view', type: 'view',
+1 -1
View File
@@ -47,7 +47,7 @@ export function resolveUserAddressName({ displayName, username, slug } = {}) {
} }
export function resolvePublicBaseUrl(env = process.env) { export function resolvePublicBaseUrl(env = process.env) {
return (env.H5_PUBLIC_BASE_URL ?? 'https://mm.tkmind.cn').replace(/\/$/, ''); return (env.H5_PUBLIC_BASE_URL ?? 'https://m.tkmind.cn').replace(/\/$/, '');
} }
export const PUBLISH_KEY_UUID = export const PUBLISH_KEY_UUID =