-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
23 lines (20 loc) · 836 Bytes
/
config.yaml.example
File metadata and controls
23 lines (20 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
server:
host: "0.0.0.0" # 0.0.0.0 for LAN access, 127.0.0.1 for localhost only
port: "8080"
mode: "release" # debug, release, test
database:
driver: "sqlite" # sqlite, mysql, postgres
dsn: "codesentry.db"
# MySQL example: user:password@tcp(localhost:3306)/codesentry?charset=utf8mb4&parseTime=True&loc=Local
# PostgreSQL example: host=localhost user=postgres password=postgres dbname=codesentry port=5432 sslmode=disable
jwt:
secret: "codesentry-secret-key-change-in-production"
expire_hour: 24
# Redis configuration (optional - for async task queue)
# When enabled, AI reviews are processed asynchronously via Redis queue
# When disabled or Redis unavailable, falls back to synchronous processing
redis:
enabled: false # Set to true to enable async processing
addr: "localhost:6379"
password: ""
db: 0