settings site changes
This commit is contained in:
@@ -342,8 +342,14 @@ internalApp.use('/internal', internalApi);
|
||||
let httpServer = null;
|
||||
let internalServer = null;
|
||||
if (CONFIG.INTERNAL_API_SECRET) {
|
||||
internalServer = internalApp.listen(CONFIG.INTERNAL_API_PORT, '127.0.0.1', () => {
|
||||
console.log(`[internalApi] listening on 127.0.0.1:${CONFIG.INTERNAL_API_PORT}`);
|
||||
// Must bind all-interfaces inside the bot container: the settings-site is a
|
||||
// separate container on broccoli-net and reaches this API over the docker
|
||||
// bridge, not loopback. Not publicly exposed — docker-compose.yml has no
|
||||
// `ports:` publish for INTERNAL_API_PORT, so ingress is limited to peers on
|
||||
// broccoli-net, still gated by INTERNAL_API_SECRET and rate-limited.
|
||||
// Do NOT flip this back to 127.0.0.1 — see commits d134f5f / 33b1f27.
|
||||
internalServer = internalApp.listen(CONFIG.INTERNAL_API_PORT, '0.0.0.0', () => {
|
||||
console.log(`[internalApi] listening on 0.0.0.0:${CONFIG.INTERNAL_API_PORT}`);
|
||||
});
|
||||
} else {
|
||||
console.warn('[internalApi] INTERNAL_API_SECRET not set — internal API disabled.');
|
||||
|
||||
Reference in New Issue
Block a user