broccolini-bot: bind internal API to 0.0.0.0 for bridge access; mount .env for config persistence
This commit is contained in:
@@ -329,8 +329,8 @@ internalApp.use('/internal', internalApi);
|
|||||||
let httpServer = null;
|
let httpServer = null;
|
||||||
let internalServer = null;
|
let internalServer = null;
|
||||||
if (CONFIG.INTERNAL_API_SECRET) {
|
if (CONFIG.INTERNAL_API_SECRET) {
|
||||||
internalServer = internalApp.listen(CONFIG.INTERNAL_API_PORT, '127.0.0.1', () => {
|
internalServer = internalApp.listen(CONFIG.INTERNAL_API_PORT, '0.0.0.0', () => {
|
||||||
console.log(`[internalApi] listening on 127.0.0.1:${CONFIG.INTERNAL_API_PORT}`);
|
console.log(`[internalApi] listening on 0.0.0.0:${CONFIG.INTERNAL_API_PORT}`);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.warn('[internalApi] INTERNAL_API_SECRET not set — internal API disabled.');
|
console.warn('[internalApi] INTERNAL_API_SECRET not set — internal API disabled.');
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ services:
|
|||||||
container_name: broccolini
|
container_name: broccolini
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- ENV_FILE=/app/.env
|
||||||
|
volumes:
|
||||||
|
- ./.env:/app/.env:rw
|
||||||
ports:
|
ports:
|
||||||
- "100.114.205.53:8892:5000"
|
- "100.114.205.53:8892:5000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -15,7 +19,6 @@ services:
|
|||||||
start_period: 15s
|
start_period: 15s
|
||||||
networks:
|
networks:
|
||||||
- broccoli-net
|
- broccoli-net
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
broccoli-net:
|
broccoli-net:
|
||||||
name: broccoli-net
|
name: broccoli-net
|
||||||
|
|||||||
Reference in New Issue
Block a user