From d134f5f678cfbbd57de78e3ee600054fc93a09b9 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Sat, 18 Apr 2026 16:26:37 +0000 Subject: [PATCH] broccolini-bot: bind internal API to 0.0.0.0 for bridge access; mount .env for config persistence --- broccolini-discord.js | 4 ++-- docker-compose.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/broccolini-discord.js b/broccolini-discord.js index 437e5e9..c216460 100644 --- a/broccolini-discord.js +++ b/broccolini-discord.js @@ -329,8 +329,8 @@ 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}`); + 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.'); diff --git a/docker-compose.yml b/docker-compose.yml index a2d7cff..dafbf7f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,10 @@ services: container_name: broccolini restart: unless-stopped env_file: .env + environment: + - ENV_FILE=/app/.env + volumes: + - ./.env:/app/.env:rw ports: - "100.114.205.53:8892:5000" healthcheck: @@ -15,7 +19,6 @@ services: start_period: 15s networks: - broccoli-net - networks: broccoli-net: name: broccoli-net