Files
AlphaPulse/deploy/.env.example
T
eezd 89c729092c
Development CI / check-and-build (push) Successful in 2m54s
GitHub Git mirror / mirror (push) Successful in 9s
Development CI / deploy-development (push) Failing after 4m24s
Add resumable US policy news collectors and provenance
Collect official crypto and US policy documents with deterministic screening, full bodies and attachments, bounded retries, and durable history cursors. Preserve publication precision and source identity while keeping new collectors disabled.

Add real Congress, GovInfo, DOJ and Federal Register fixtures, offline capture replay, isolated database validation, and rollout instructions. Validate 982 backend tests, frontend checks, and 57 deployment control tests.
2026-11-04 21:41:04 +08:00

17 lines
915 B
Bash

# 复制为仓库根目录 .env(chmod 600);只有这一套配置
DATABASE_URL=postgresql+asyncpg://alphapulse:<密码>@postgres:5432/alphapulse
# DB 14 与 AFFiNE 共用,key 一律带 ap: 前缀
REDIS_URL=redis://:<密码>@redis:6379/14
JWT_SECRET=<openssl rand -hex 32>
ADMIN_USERNAME=admin
# 哈希含 $,必须用单引号包住,否则 compose 会做变量替换
ADMIN_PASSWORD_HASH='<python -m alphapulse.core.auth hash-password 的输出>'
# 登录验证码默认关闭;设为 true 后启用,修改后须重新部署 API
LOGIN_CAPTCHA_ENABLED=false
# 加密存库的第三方 API key(Fernet);丢失后已存的 key 无法解密,需要在页面重新填写
SECRET_ENCRYPTION_KEY=<python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())">
# Official collectors: provide a private API key and a public bot contact.
CONGRESS_API_KEY=
CRAWLER_CONTACT_EMAIL=