-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (47 loc) · 1.79 KB
/
Copy path.env.example
File metadata and controls
54 lines (47 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Environment variables for development
#
# Copy this file into the same folder as `.env`,
# and insert your secrets there.
# You may also want to change other configuration settings,
# like the user agent or the database URL.
#
# You probably would want to reassign the folder of `CBRIDGE__AUTH__PEM_PATH`
# if you're not running on a container.
# Server
CBRIDGE__SERVER__ADDRESS=0.0.0.0:3000
CBRIDGE__SERVER__USER_AGENT=nilirad-commit-bridge
CBRIDGE__SERVER__IN_REQUEST_TIMEOUT=30s
CBRIDGE__SERVER__OUT_REQUEST_TIMEOUT=30s
# Database
CBRIDGE__DATABASE__URL=sqlite://commit-bridge.db?mode=rwc
CBRIDGE__DATABASE__TIMEOUT=3s
CBRIDGE__DATABASE__POLLING_DB_BUFFER_SIZE=3
CBRIDGE__DATABASE__POLLING_DB_ERROR_COOLDOWN=300s
CBRIDGE__DATABASE__SUBSCRIPTIONS_LIST_LIMIT=50
CBRIDGE__DATABASE__SUBSCRIPTIONS_LIST_LIMIT_CAP=100
# GitHub API
CBRIDGE__GITHUB_API__BASE_URL=https://api.github.com
CBRIDGE__GITHUB_API__VERSION=2026-03-10
CBRIDGE__GITHUB_API__ACCEPT_HEADER=application/vnd.github+json
# Engine
CBRIDGE__ENGINE__POLLING_SLEEP=300s
CBRIDGE__ENGINE__TRIGGER_QUEUE_POLLING_INTERVAL=5s
CBRIDGE__ENGINE__TRIGGER_RETRY_MAX_ATTEMPTS=10
CBRIDGE__ENGINE__TRIGGER_RETRY_BACKOFF_BASE=10s
CBRIDGE__ENGINE__STUCK_TASK_THRESHOLD=300s
# Auth
CBRIDGE__AUTH__CLOCK_DRIFT_BUFFER=60s
CBRIDGE__AUTH__TOKEN_VALIDITY=300s
# CBRIDGE__AUTH__API_KEY=YOUR_API_KEY
# CBRIDGE__AUTH__ALLOW_UNAUTHENTICATED=true
CBRIDGE__AUTH__CLIENT_ID=YOUR_GITHUB_CLIENT_ID
CBRIDGE__AUTH__PEM_PATH=/app/data/YOUR_PEM_FILE.pem
# Git
CBRIDGE__GIT__REPO_PATH=/app/data/git_repo
# Telemetry
# OpenTelemetry is disabled by default
# and only enabled when an OTLP endpoint is explicitly configured,
# e.g. for a local Jaeger instance:
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
# RUST_LOG=commit_bridge=info
# CBRIDGE__TELEMETRY__MARK_CLIENT_ERRORS_AS_ERROR=true