Files
devops-platform-api/.env.example
T
湛兮 289c01f0cd fix: 自动发现最新直构并修复构建来源链接
- 复用 Jenkins 同步器,每分钟顺序扫描各任务最新一次构建,跳过已完成历史。

- 限制自动扫描响应和超时,区分记录建档时间与真实构建时间。

- 支持独立 Jenkins 公开链接,内部请求地址保持不变。
2026-10-28 00:01:53 +08:00

52 lines
2.1 KiB
Bash

# Runtime
NODE_ENV=development
PORT=4300
CORS_ORIGIN=http://localhost:4301
LOG_LEVEL=info
# Database
# Do not commit real credentials. Use a local-only .env file or deployment secret manager.
DATABASE_URL=mysql://devops_user:devops_password@127.0.0.1:3306/devops_platform
USE_DATABASE_READS=false
PRISMA_CONNECT_ON_BOOT=false
# Redis and queues. Used by health checks, Jenkins auto sync, and notification outbox retry.
REDIS_URL=redis://127.0.0.1:6379/0
# Jenkins integration, server-side only.
JENKINS_BASE_URL=https://jenkins.example.internal
# 可选:浏览器可访问的 Jenkins 地址,服务端请求继续使用 BASE_URL
JENKINS_PUBLIC_URL=https://jenkins.example.com
JENKINS_USERNAME=devops-bot
JENKINS_API_TOKEN=replace-with-secret-manager-value
JENKINS_AUTO_SYNC_ENABLED=false
JENKINS_AUTO_SYNC_INTERVAL_MS=30000
# Gitea integration, server-side only.
GITEA_BASE_URL=https://gitea.example.internal
GITEA_TOKEN=replace-with-secret-manager-value
GITEA_WEBHOOK_SECRET=replace-with-secret-manager-value
GITEA_WEBHOOK_RELAY_BASE_URL=https://jenkins.example.internal/gitea-jenkins-notify
# Public platform URL used in notification links.
DEVOPS_PUBLIC_URL=https://devops.mrzhan.top
# Notification provider, server-side only. Supported plan: wecom, feishu, generic.
NOTIFICATION_PROVIDER=replace-with-provider
NOTIFICATION_WEBHOOK_URL=https://notification.example.internal/webhook/replace-with-secret-manager-value
FEISHU_WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/replace-with-secret-manager-value
WECOM_WEBHOOK_URL=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=replace-with-secret-manager-value
NOTIFICATION_OUTBOX_RETRY_ENABLED=false
NOTIFICATION_OUTBOX_RETRY_INTERVAL_MS=30000
NOTIFICATION_OUTBOX_RETRY_DELAY_MS=60000
NOTIFICATION_OUTBOX_MAX_ATTEMPTS=3
NOTIFICATION_OUTBOX_BATCH_SIZE=10
# LLM proxy configuration, server-side only.
LLM_BASE_URL=https://llm.example.internal/v1
LLM_API_KEY=replace-with-secret-manager-value
LLM_MODEL=replace-with-model-name
# Secret encryption key placeholder. Production should provide this via secret manager.
SECRET_ENCRYPTION_KEY=replace-with-32-byte-key