freeleaps-ops/apps/gitea-webhook-ambassador-python/configs/config.yaml
Nicolas f6c515157c feat: 添加 Python 版本的 Gitea Webhook Ambassador
- 新增完整的 Python 实现,替代 Go 版本
- 添加 Web 登录界面和仪表板
- 实现 JWT 认证和 API 密钥管理
- 添加数据库存储功能
- 保持与 Go 版本一致的目录结构和启动脚本
- 包含完整的文档和测试脚本
2025-07-20 21:17:10 +08:00

32 lines
894 B
YAML

server:
port: 8000
webhookPath: "/webhook"
secretHeader: "X-Gitea-Signature"
secretKey: "admin-secret-key-change-in-production"
jenkins:
url: "http://jenkins.example.com"
username: "jenkins-user"
token: "jenkins-api-token"
timeout: 30
admin:
token: "admin-api-token" # Token for admin API access
database:
path: "data/gitea-webhook-ambassador.db" # Path to SQLite database file
logging:
level: "info" # debug, info, warn, error
format: "text" # text, json
file: "logs/service.log" # stdout if empty, or path to log file
worker:
poolSize: 10 # Number of concurrent workers
queueSize: 100 # Size of job queue
maxRetries: 3 # Maximum number of retry attempts
retryBackoff: 1 # Initial retry backoff in seconds (exponential)
eventCleanup:
interval: 3600 # Cleanup interval in seconds
expireAfter: 7200 # Event expiration time in seconds