fix(backend): secure production startup and migrations

This commit is contained in:
2026-07-22 13:11:30 +08:00
parent 0daea4def9
commit 7980943660
13 changed files with 220 additions and 43 deletions

View File

@@ -0,0 +1,11 @@
# 复制为 agent.prod.yaml 后使用change-me 值会被生产校验拒绝。
env: production
port: "9150"
dsn: "postgres://change-me"
storage_dir: "/var/lib/senlinai/files"
max_upload_bytes: 33554432
auth_secret: "change-me-with-an-independent-random-secret"
system_ai_key: ""
ai_key_encryption_secret: "change-me-with-a-different-random-secret"
allowed_origins:
- "https://workbench.example.com"