交付三种引擎登记、草稿/已保存连接测试、可逆启用、每源熔断与 Cron 巡检,以及控制台页面;用户确认收尾后标 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
70 lines
3.1 KiB
Bash
70 lines
3.1 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
|
|
|
|
# Datasource password encryption (Fernet urlsafe base64 key). Generate your own; losing it makes stored passwords unrecoverable.
|
|
WATCHMAN_DATASOURCE_KEY=CHANGE-ME
|
|
# Datasource probe: per-attempt timeout (seconds, default 5) and attempt cap (1-2, default 2; only timeout/unreachable retry).
|
|
WATCHMAN_DATASOURCE_PROBE_TIMEOUT_SECONDS=5
|
|
WATCHMAN_DATASOURCE_PROBE_MAX_ATTEMPTS=2
|
|
# Scheduled datasource health check (Celery Beat). Off by default. The cron is 5-field Unix
|
|
# (minute hour day-of-month month day-of-week), digits with * / , - only; setting both
|
|
# day-of-month and day-of-week is rejected. An invalid value means no schedule.
|
|
WATCHMAN_DATASOURCE_HEALTHCHECK_ENABLED=false
|
|
WATCHMAN_DATASOURCE_HEALTHCHECK_CRON="*/5 * * * *"
|
|
|
|
# M03 S2: isolated probe-test sources (engine connector tests). Real values in .env.local only.
|
|
WATCHMAN_TEST_PG_HOST=127.0.0.1
|
|
WATCHMAN_TEST_PG_PORT=5432
|
|
WATCHMAN_TEST_PG_USER=CHANGE-ME
|
|
WATCHMAN_TEST_PG_PASSWORD=CHANGE-ME
|
|
WATCHMAN_TEST_PG_DATABASE=CHANGE-ME
|
|
WATCHMAN_TEST_MYSQL_HOST=127.0.0.1
|
|
WATCHMAN_TEST_MYSQL_PORT=3306
|
|
WATCHMAN_TEST_MYSQL_USER=CHANGE-ME
|
|
WATCHMAN_TEST_MYSQL_PASSWORD=CHANGE-ME
|
|
WATCHMAN_TEST_MYSQL_DATABASE=CHANGE-ME
|
|
# SQL Server runs in compose profile source-sqlserver (127.0.0.1 only); user is sa.
|
|
# The password must satisfy SQL Server complexity rules.
|
|
WATCHMAN_TEST_SQLSERVER_HOST=127.0.0.1
|
|
WATCHMAN_TEST_SQLSERVER_PORT=1433
|
|
WATCHMAN_TEST_SQLSERVER_USER=sa
|
|
WATCHMAN_TEST_SQLSERVER_PASSWORD=CHANGE-ME
|
|
WATCHMAN_TEST_SQLSERVER_DATABASE=CHANGE-ME
|