gopay/cmd/config.toml

34 lines
610 B
TOML
Raw Normal View History

2024-06-03 11:42:58 +00:00
[auth]
2024-06-03 12:42:05 +00:00
# JWT secret
2024-06-03 13:51:42 +00:00
secret = "a secret"
# Disable registration
2024-06-03 11:42:58 +00:00
disabled = false
2024-06-03 13:07:22 +00:00
# bcrypt cost
# https://pkg.go.dev/golang.org/x/crypto/bcrypt#pkg-constants
cost = 10
2024-06-03 11:42:58 +00:00
2024-06-02 13:07:09 +00:00
[server]
# Listener address
2024-06-02 13:07:09 +00:00
address = "127.0.0.1:8080"
# Read & write timeout
# Warning: Too high can
# cause a slowloris attack
2024-06-02 13:07:09 +00:00
read_timeout = 10
write_timeout = 10
2024-06-02 11:57:14 +00:00
[database]
# Supported drivers:
# sqlite3
2024-06-02 11:58:48 +00:00
driver = "sqlite3"
# URL (For sqlite, use the path)
2024-06-02 11:57:14 +00:00
url = "gopay.db"
# Max connections
2024-06-02 11:57:14 +00:00
max = 30
# Max idle connections
2024-06-02 11:57:14 +00:00
idle = 30
[log]
# Level for database and server
2024-06-02 11:57:14 +00:00
# https://pkg.go.dev/github.com/rs/zerolog#Level
level = "debug"