Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix: selfhost env does not accept LARK related env (MUL-3060) (#3771)

Alex4da43b383f3a
diff --git a/.env.example b/.env.example
index c29a782c50..c756c7e332 100644
--- a/.env.example
+++ b/.env.example
@@ -200,6 +200,18 @@ CORS_ALLOWED_ORIGINS=
GITHUB_APP_SLUG=
GITHUB_WEBHOOK_SECRET=
+# Lark / Feishu bot integration (Settings → Integrations "Bind to Lark")
+# Off until MULTICA_LARK_SECRET_KEY is set — a base64-encoded 32-byte key
+# that encrypts each Bot's app secret at rest. Leave empty to disable.
+# Generate one with: openssl rand -base64 32
+MULTICA_LARK_SECRET_KEY=
+# The two base URLs default to the mainland host (open.feishu.cn). For
+# international Lark tenants, set BOTH to https://open.larksuite.com:
+# HTTP drives outbound Open Platform API calls, CALLBACK drives the
+# inbound long-conn callback bootstrap. See docs/lark-bot-integration.
+MULTICA_LARK_HTTP_BASE_URL=
+MULTICA_LARK_CALLBACK_BASE_URL=
+
# Frontend
FRONTEND_PORT=3000
# Derived by docker-compose.selfhost.yml / local scripts from FRONTEND_PORT.
diff --git a/docker-compose.selfhost.yml b/docker-compose.selfhost.yml
index f4567f0309..92f829a5a0 100644
--- a/docker-compose.selfhost.yml
+++ b/docker-compose.selfhost.yml
@@ -29,7 +29,11 @@ services:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
- test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-multica} -d ${POSTGRES_DB:-multica}"]
+ test:
+ [
+ "CMD-SHELL",
+ "pg_isready -U ${POSTGRES_USER:-multica} -d ${POSTGRES_DB:-multica}",
+ ]
interval: 5s
timeout: 5s
retries: 5
@@ -93,6 +97,15 @@ services:
# Empty default = headers ignored, RemoteAddr used. Set e.g.
# "127.0.0.1/32" when running behind a same-host reverse proxy.
MULTICA_TRUSTED_PROXIES: ${MULTICA_TRUSTED_PROXIES:-}
+ # Lark / Feishu bot integration. MULTICA_LARK_SECRET_KEY is the
+ # opt-in: unset = integration disabled. The two base-URL knobs
+ # default to the mainland host (open.feishu.cn); international Lark
+ # tenants must point BOTH at https://open.larksuite.com — one drives
+ # outbound Open Platform API calls, the other the inbound long-conn
+ # callback bootstrap. See docs/lark-bot-integration.
+ MULTICA_LARK_SECRET_KEY: ${MULTICA_LARK_SECRET_KEY:-}
+ MULTICA_LARK_HTTP_BASE_URL: ${MULTICA_LARK_HTTP_BASE_URL:-}
+ MULTICA_LARK_CALLBACK_BASE_URL: ${MULTICA_LARK_CALLBACK_BASE_URL:-}
restart: unless-stopped
frontend: