refactor: modularize portal server and harden session recovery
This commit is contained in:
@@ -406,6 +406,10 @@ test('agent session policy preserves sandbox root and exposes workspace ref meta
|
||||
MINDSPACE_USERDATA_BACKEND: 'postgres',
|
||||
MINDSPACE_USERDATA_PG_URL: 'postgresql://mindspace:secret@127.0.0.1:5433/mindspace_userdata_prod',
|
||||
MINDSPACE_USERDATA_AUTO_PROVISION: '1',
|
||||
H5_PUBLIC_BASE_URL: 'http://127.0.0.1:18131',
|
||||
H5_PORTAL_BASE_URL: 'http://127.0.0.1:18131',
|
||||
H5_PORT: '18131',
|
||||
MEMIND_PAGE_DATA_DELIVERY_BASE_URL: 'http://127.0.0.1:18131',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -418,6 +422,13 @@ test('agent session policy preserves sandbox root and exposes workspace ref meta
|
||||
assert.equal(new URL(sandboxFs.envs.MINDSPACE_USERDATA_PG_URL).hostname, 'host.docker.internal');
|
||||
assert.equal(sandboxFs.envs.MINDSPACE_USERDATA_BACKEND, 'postgres');
|
||||
assert.equal(sandboxFs.envs.MINDSPACE_USERDATA_AUTO_PROVISION, '1');
|
||||
assert.equal(sandboxFs.envs.H5_PUBLIC_BASE_URL, 'http://127.0.0.1:18131');
|
||||
assert.equal(sandboxFs.envs.H5_PORTAL_BASE_URL, 'http://127.0.0.1:18131');
|
||||
assert.equal(sandboxFs.envs.H5_PORT, '18131');
|
||||
assert.equal(
|
||||
sandboxFs.envs.MEMIND_PAGE_DATA_DELIVERY_BASE_URL,
|
||||
'http://127.0.0.1:18131',
|
||||
);
|
||||
});
|
||||
|
||||
test('admin capabilities include granted platform skills', async () => {
|
||||
|
||||
Reference in New Issue
Block a user