Added key for auth & commented everything

This commit is contained in:
perp 2024-06-03 13:19:18 +01:00
parent b0a440b5d6
commit 1b4ff521eb

View File

@ -1,17 +1,30 @@
[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"