2024-06-03 11:42:58 +00:00
|
|
|
[auth]
|
2024-06-03 12:19:18 +00:00
|
|
|
# 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]
|
2024-06-03 12:19:18 +00:00
|
|
|
# Listener address
|
2024-06-02 13:07:09 +00:00
|
|
|
address = "127.0.0.1:8080"
|
2024-06-03 12:19:18 +00:00
|
|
|
# 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]
|
2024-06-03 12:19:18 +00:00
|
|
|
# Supported drivers:
|
|
|
|
# sqlite3
|
2024-06-02 11:58:48 +00:00
|
|
|
driver = "sqlite3"
|
2024-06-03 12:19:18 +00:00
|
|
|
# URL (For sqlite, use the path)
|
2024-06-02 11:57:14 +00:00
|
|
|
url = "gopay.db"
|
2024-06-03 12:19:18 +00:00
|
|
|
# Max connections
|
2024-06-02 11:57:14 +00:00
|
|
|
max = 30
|
2024-06-03 12:19:18 +00:00
|
|
|
# Max idle connections
|
2024-06-02 11:57:14 +00:00
|
|
|
idle = 30
|
|
|
|
|
|
|
|
[log]
|
2024-06-03 12:19:18 +00:00
|
|
|
# Level for database and server
|
2024-06-02 11:57:14 +00:00
|
|
|
# https://pkg.go.dev/github.com/rs/zerolog#Level
|
|
|
|
level = "debug"
|