Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
docs(selfhost): surface APP_ENV + 888888 gating in .env.example (#1361)
Bohan Jiang96ee5bba52c8
diff --git a/.env.example b/.env.exampleindex a346ec302b..0e9cb3862d 100644--- a/.env.example+++ b/.env.example@@ -6,6 +6,16 @@ POSTGRES_PORT=5432DATABASE_URL=postgres://multica:multica@localhost:5432/multica?sslmode=disable# Server+# APP_ENV gates dev-only auth shortcuts (primarily the 888888 master code).+# - Docker self-host: docker-compose.selfhost.yml already pins APP_ENV to+# "production" by default, so 888888 is DISABLED — a public instance can't+# be logged into with any email + 888888.+# - Local dev (make dev): leave APP_ENV unset so 888888 works out of the box.+# - Docker self-host on a private network you fully control, or evaluation+# without Resend: set APP_ENV=development to re-enable 888888. Do NOT+# enable on a publicly reachable instance.+# See SELF_HOSTING.md for the full login setup.+APP_ENV=PORT=8080JWT_SECRET=change-me-in-productionMULTICA_SERVER_URL=ws://localhost:8080/ws@@ -22,7 +32,8 @@ MULTICA_CODEX_WORKDIR=MULTICA_CODEX_TIMEOUT=20m# Email (Resend)-# For local/dev use, leave RESEND_API_KEY empty — codes print to stdout, and master code 888888 works.+# For local/dev use, leave RESEND_API_KEY empty — codes print to stdout, and+# master code 888888 works (only when APP_ENV != "production"; see above).# For production, set your Resend API key and change RESEND_FROM_EMAIL to a domain verified in your Resend account.RESEND_API_KEY=diff --git a/Makefile b/Makefileindex fb5fd3ba2f..13f3a2dfce 100644--- a/Makefile+++ b/Makefile@@ -66,7 +66,8 @@ selfhost:echo " Frontend: http://localhost:$${FRONTEND_PORT:-3000}"; \echo " Backend: http://localhost:$${PORT:-8080}"; \echo ""; \- echo "Log in with any email + verification code: 888888"; \+ echo "Log in: configure RESEND_API_KEY in .env for email codes,"; \+ echo " or set APP_ENV=development in .env (private networks only) to enable code 888888."; \echo ""; \echo "Next — install the CLI and connect your machine:"; \echo " brew install multica-ai/tap/multica"; \