报告工人的等待到点就摘掉取消监听。本地数据库缓存表结构,并把设置身份合成一条语句,对照通过后默认打开,写成 off 仍走原来的语句。交付、重算和限流的内存表会过期。登录读缓存默认关闭,要开再设 IDENTITY_SESSION_COOKIE_CACHE=on。 自测:tsc 通过,lint 0 error,点名测试 134 通过,test:db 开关关和开都只有已知的 13 条失败,往返 49 降到 32。 Co-Authored-By: Grok (agent loop)
42 lines
2.3 KiB
Bash
42 lines
2.3 KiB
Bash
# Copy these names into /opt/jyotisha-staging/.env.staging, replace every
|
|
# bracketed value locally, keep the file mode 0600, and do not commit it.
|
|
APP_ENV_FILE=../.env.staging
|
|
CADDYFILE_PATH=./Caddyfile.staging
|
|
SITE_ADDRESS=https://staging.jyotisha.chat
|
|
|
|
# Staging-only cutover: identity and business data both use the private local
|
|
# PostgreSQL service. Production remains on Supabase until a separate cutover.
|
|
AUTH_PROVIDER=self-hosted
|
|
SELF_HOSTED_IDENTITY_ENABLED=true
|
|
AUTH_USER_ORIGIN=https://staging.jyotisha.chat
|
|
ADMIN_USER_ORIGIN=https://admin.staging.jyotisha.chat
|
|
IDENTITY_DATABASE_URL=postgresql://identity_runtime:<percent-encoded-identity-runtime-password>@postgres:5432/jyotisha
|
|
APP_DATABASE_URL=postgresql://app_runtime:<percent-encoded-app-runtime-password>@postgres:5432/jyotisha
|
|
SERVICE_DATABASE_URL=postgresql://service_runtime:<percent-encoded-service-runtime-password>@postgres:5432/jyotisha
|
|
ADMIN_DATABASE_URL=postgresql://admin_runtime:<percent-encoded-admin-runtime-password>@postgres:5432/jyotisha
|
|
BETTER_AUTH_USER_SECRET=<independent-openssl-rand-base64-32-output>
|
|
RESEND_API_KEY=<staging-only-resend-api-key>
|
|
RESEND_FROM_EMAIL=Jyotisha Staging <login@staging.jyotisha.chat>
|
|
# Optional test-only OTP channel: when set to a 6-digit code, no real email is
|
|
# delivered; the login page shows the fixed code so testers can register/login
|
|
# without a mailbox. Never set in production. Omit (or empty) to disable.
|
|
#IDENTITY_TEST_OTP=123456
|
|
ADMIN_EMAILS=<comma-separated-staging-admin-emails>
|
|
EPAY_CONFIG_ENCRYPTION_KEY=<independent-openssl-rand-base64-32-output>
|
|
MODEL_PROVIDER_CONFIG_ENCRYPTION_KEY=<independent-openssl-rand-base64-32-output>
|
|
EPAY_CHAT_ENABLED=false
|
|
JYOTISH_DYNAMIC_RECTIFICATION_TOKEN=<independent-openssl-rand-base64-32-output>
|
|
|
|
# Personal reports are staging-only in this rollout. The web service receives
|
|
# these server-side values through env_file; they are not NEXT_PUBLIC values.
|
|
PERSONAL_REPORT_ENABLED=true
|
|
PERSONAL_REPORT_DAILY_LIMIT=5
|
|
|
|
# Local Postgres adapter. Unset or on enables both. Exact off restores the
|
|
# previous per-statement sequence. Measured default is on (2026-10-14).
|
|
JYOTISHA_PG_METADATA_CACHE=on
|
|
JYOTISHA_PG_MERGED_SESSION_SETUP=on
|
|
# Ordinary session reads stay uncached unless this is exactly on. Password
|
|
# change, account deletion, and admin routes bypass the cache. maxAge is 300s.
|
|
#IDENTITY_SESSION_COOKIE_CACHE=off
|