chore(infra): migrate 103 production host IP to 180.159.29.143

Update scripts, docs, nginx configs, and release-gate safety checks after the Studio server public IP changed from 58.38.22.103.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-11 10:24:32 +08:00
parent 03089a12ce
commit b09b269199
65 changed files with 144 additions and 144 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const FORBIDDEN_HOSTS = new Set([
'58.38.22.103',
'180.159.29.143',
'm.tkmind.cn',
'plaza.tkmind.cn',
]);
@@ -33,7 +33,7 @@ export function isProductionTarget(value) {
const hostname = extractHostname(text);
return FORBIDDEN_HOSTS.has(hostname)
|| hostname.endsWith('.tkmind.cn')
|| text.includes('58.38.22.103')
|| text.includes('180.159.29.143')
|| text.includes('/users/john/project/memind');
}
+4 -4
View File
@@ -10,8 +10,8 @@ import {
test('production IP, public domains, and production paths are refused', () => {
for (const target of [
'58.38.22.103',
'ssh://58.38.22.103',
'180.159.29.143',
'ssh://180.159.29.143',
'https://m.tkmind.cn',
'https://plaza.tkmind.cn/page',
'/Users/john/Project/Memind',
@@ -32,8 +32,8 @@ test('unsafe environment keys are reported without exposing values', () => {
assert.throws(
() => assertSafeGateEnvironment({
env: {
DATABASE_URL: 'postgres://secret@58.38.22.103/prod',
STUDIO_HOST: '58.38.22.103',
DATABASE_URL: 'postgres://secret@180.159.29.143/prod',
STUDIO_HOST: '180.159.29.143',
},
}),
(error) => {