60 lines
970 B
YAML
60 lines
970 B
YAML
Name: zero-ppanel-api
|
|
Host: 0.0.0.0
|
|
Port: 8080
|
|
Mode: pro
|
|
|
|
Log:
|
|
Mode: file
|
|
Encoding: json
|
|
Level: info
|
|
Path: /var/log/zero-ppanel/api
|
|
KeepDays: 15
|
|
Rotation: daily
|
|
|
|
Telemetry:
|
|
Name: zero-ppanel-api
|
|
Endpoint: http://jaeger:4318/v1/traces
|
|
Sampler: 0.1
|
|
Batcher: otlphttp
|
|
|
|
DevServer:
|
|
Enabled: true
|
|
Port: 6160
|
|
EnableMetrics: true
|
|
EnablePprof: false
|
|
|
|
JwtAuth:
|
|
AccessSecret: "${JWT_SECRET}"
|
|
AccessExpire: 86400
|
|
|
|
MySQL:
|
|
DataSource: "${MYSQL_DSN}"
|
|
|
|
Redis:
|
|
Host: "${REDIS_HOST}"
|
|
Type: node
|
|
Pass: "${REDIS_PASS}"
|
|
|
|
CacheRedis:
|
|
Host: "${REDIS_HOST}"
|
|
Type: node
|
|
Pass: "${REDIS_PASS}"
|
|
|
|
AppSignature:
|
|
AppSecrets:
|
|
android-client: "${APP_SECRET}"
|
|
web-client: "${APP_SECRET}"
|
|
ios-client: "${APP_SECRET}"
|
|
mac-client: "${APP_SECRET}"
|
|
ValidWindowSeconds: 300
|
|
SkipPrefixes:
|
|
- /api/v1/health
|
|
|
|
Security:
|
|
Enable: true
|
|
SecuritySecret: "${SECURITY_SECRET}"
|
|
|
|
Asynq:
|
|
Addr: "${REDIS_HOST}"
|
|
Pass: "${REDIS_PASS}"
|