gopay/cmd/config.toml
2024-06-03 14:07:22 +01:00

34 lines
607 B
TOML

[auth]
# JWT secret
secret = "a key"
# Disable registration
disabled = false
# bcrypt cost
# https://pkg.go.dev/golang.org/x/crypto/bcrypt#pkg-constants
cost = 10
[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"