zero-ppanel/apps/api/etc/api-test.yaml

56 lines
905 B
YAML

Name: zero-ppanel-api
Host: 0.0.0.0
Port: 8080
Mode: test
Log:
Mode: file
Encoding: json
Level: info
Path: logs/api
KeepDays: 7
Telemetry:
Name: zero-ppanel-api
Endpoint: http://jaeger:4318/v1/traces
Sampler: 0.5
Batcher: otlphttp
DevServer:
Enabled: true
Port: 6160
EnableMetrics: true
EnablePprof: true
JwtAuth:
AccessSecret: "test-secret-key-change-me"
AccessExpire: 86400
MySQL:
DataSource: "root:password@tcp(mysql:3306)/ppanel?charset=utf8mb4&parseTime=true"
Redis:
Host: redis:6379
Type: node
CacheRedis:
Host: redis:6379
Type: node
AppSignature:
AppSecrets:
android-client: "uB4G,XxL2{7b"
web-client: "uB4G,XxL2{7b"
ios-client: "uB4G,XxL2{7b"
mac-client: "uB4G,XxL2{7b"
ValidWindowSeconds: 300
SkipPrefixes:
- /api/v1/health
Security:
Enable: true
SecuritySecret: "uB4G,XxL2{7b"
Asynq:
Addr: redis:6379