howmuch/configs/howmuch.yml
Muyao CHEN 20ef75b1aa
All checks were successful
Build and test / Build (push) Successful in 2m20s
feat: rework db conn to use sql.DB for better portability
2024-10-15 14:01:53 +02:00

36 lines
557 B
YAML

dev-mode: true
web:
addr: :8000
shutdown-timeout: 10
token-secret: nzMC12IJBMiiV2AAktTFpZP4BbGAf09lFPV_sATKcwI
token-expiry-time: 24h
db:
# DB host
host: 127.0.0.1
# DB username
username: postgres
# DB password
password: example
# DB name
database: howmuch
max-open-conns: 100
max-idle-conns: 100
max-lifetime: 10s
cache:
host: 127.0.0.1:6379
password: ""
log:
level: debug
disalbe-caller: false
disable-stacktrace: false
# console or json
format: console
output-paths:
- stdout
- /tmp/howmuch.log