- 新增完整的 Python 实现,替代 Go 版本 - 添加 Web 登录界面和仪表板 - 实现 JWT 认证和 API 密钥管理 - 添加数据库存储功能 - 保持与 Go 版本一致的目录结构和启动脚本 - 包含完整的文档和测试脚本
32 lines
894 B
YAML
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 |