feat: 初始化DevOps平台后端
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# 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, reserved for async polling/notification workers.
|
||||
REDIS_URL=redis://127.0.0.1:6379/0
|
||||
|
||||
# Jenkins integration, server-side only.
|
||||
JENKINS_BASE_URL=https://jenkins.example.internal
|
||||
JENKINS_USERNAME=devops-bot
|
||||
JENKINS_API_TOKEN=replace-with-secret-manager-value
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user