管理台可以密码登录、按角色进入,并把 Watchman 会话 token 交给浏览器。HXOPS 真实跳转仍未联调。 Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
1.7 KiB
Bash
40 lines
1.7 KiB
Bash
# Copy to .env.dev / .env.local and replace placeholders.
|
|
# .env.local is never committed.
|
|
|
|
# Bootstrap only (local superuser). Prefer system env or .env.local.
|
|
WATCHMAN_BOOTSTRAP_DATABASE_URL=postgresql+psycopg://postgres:CHANGE-ME@127.0.0.1:5432/postgres
|
|
|
|
# App and migrator roles (not the bootstrap superuser)
|
|
WATCHMAN_MIGRATOR_PASSWORD=CHANGE-ME
|
|
WATCHMAN_APP_PASSWORD=CHANGE-ME
|
|
|
|
DATABASE_URL=postgresql+psycopg://watchman_app:CHANGE-ME@127.0.0.1:5432/watchman
|
|
DATABASE_MIGRATOR_URL=postgresql+psycopg://watchman_migrator:CHANGE-ME@127.0.0.1:5432/watchman
|
|
|
|
# Server-injected tenant for M01; keep out of committed shared env.
|
|
WATCHMAN_TENANT_ID=dev-tenant
|
|
|
|
# Queue (host processes talk to published RabbitMQ port).
|
|
# DEV ONLY: RabbitMQ image default guest/guest — never reuse in non-local brokers.
|
|
CELERY_BROKER_URL=amqp://guest:guest@127.0.0.1:56729//
|
|
|
|
# Compose app profile overrides (gitignored .env.local only)
|
|
# DEV ONLY guest/guest for the local compose RabbitMQ service.
|
|
CELERY_BROKER_URL_DOCKER=amqp://guest:guest@rabbitmq:5672//
|
|
DATABASE_URL_DOCKER=postgresql+psycopg://watchman_app:CHANGE-ME@host.docker.internal:5432/watchman
|
|
DATABASE_MIGRATOR_URL_DOCKER=postgresql+psycopg://watchman_migrator:CHANGE-ME@host.docker.internal:5432/watchman
|
|
COMPOSE_POSTGRES_PASSWORD=CHANGE-ME
|
|
|
|
# 4. Security, identity. Real values belong in gitignored .env.local only.
|
|
CASDOOR_ENDPOINT=http://CHANGE-ME
|
|
CASDOOR_CLIENT_ID=CHANGE-ME
|
|
CASDOOR_CLIENT_SECRET=CHANGE-ME
|
|
CASDOOR_ORGANIZATION=CHANGE-ME
|
|
CASDOOR_APPLICATION=CHANGE-ME
|
|
CASDOOR_CERTIFICATE=CHANGE-ME
|
|
CASDOOR_ISSUER=http://CHANGE-ME
|
|
CASDOOR_AUDIENCE=CHANGE-ME
|
|
HXOPS_SSO_ISSUER=https://CHANGE-ME
|
|
HXOPS_SSO_AUDIENCE=CHANGE-ME
|
|
HXOPS_SSO_PUBLIC_KEY=CHANGE-ME
|