gopay/cmd/config.toml

31 lines
524 B
TOML
Raw Normal View History

2024-06-03 11:42:58 +00:00
[auth]
# JWT encoding key
key = "a key"
# Disable registration
2024-06-03 11:42:58 +00:00
disabled = false
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"