- Changed the build process to include a web UI build stage using Node.js. - Updated Go build stage to copy web UI files to the correct location. - Removed the main.go file as it is no longer needed. - Added SQLite database configuration to example config. - Updated dependencies in go.mod and go.sum, including new packages for JWT and SQLite. - Modified .gitignore to include new database and configuration files. Signed-off-by: zhenyus <zhenyus@mathmast.com>
32 lines
862 B
YAML
32 lines
862 B
YAML
server:
|
|
port: 8080
|
|
webhookPath: "/webhook"
|
|
secretHeader: "X-Gitea-Signature"
|
|
secretKey: "custom-secret-key"
|
|
|
|
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: "json" # text, json
|
|
file: "" # 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 |