gopay/cmd/config.toml

31 lines
524 B
TOML

[auth]
# JWT encoding key
key = "a key"
# Disable registration
disabled = false
[server]
# Listener address
address = "127.0.0.1:8080"
# Read & write timeout
# Warning: Too high can
# cause a slowloris attack
read_timeout = 10
write_timeout = 10
[database]
# Supported drivers:
# sqlite3
driver = "sqlite3"
# URL (For sqlite, use the path)
url = "gopay.db"
# Max connections
max = 30
# Max idle connections
idle = 30
[log]
# Level for database and server
# https://pkg.go.dev/github.com/rs/zerolog#Level
level = "debug"