Add regression tests for the shipped development and SMS sample configs, and fix the SMS example to match the runtime flat Config schema instead of nested provider blocks. Verified with fresh go test runs for ./internal/config and ./internal/sms before commit.
38 lines
654 B
YAML
38 lines
654 B
YAML
# Supply API Development Configuration
|
|
server:
|
|
addr: ":18082"
|
|
read_timeout: 10s
|
|
write_timeout: 15s
|
|
idle_timeout: 30s
|
|
shutdown_timeout: 5s
|
|
|
|
database:
|
|
host: "localhost"
|
|
port: 5432
|
|
user: "postgres"
|
|
password: ""
|
|
database: "supply_db"
|
|
max_open_conns: 25
|
|
max_idle_conns: 5
|
|
conn_max_lifetime: 1h
|
|
conn_max_idle_time: 10m
|
|
|
|
redis:
|
|
host: "localhost"
|
|
port: 6379
|
|
password: ""
|
|
db: 0
|
|
pool_size: 10
|
|
|
|
token:
|
|
secret_key: "${SUPPLY_TOKEN_SECRET_KEY}"
|
|
issuer: "lijiaoqiao/supply-api"
|
|
access_token_ttl: 1h
|
|
refresh_token_ttl: 168h
|
|
revocation_cache_ttl: 30s
|
|
|
|
audit:
|
|
buffer_size: 1000
|
|
flush_interval: 5s
|
|
export_timeout: 30s
|