Added key for auth & commented everything
This commit is contained in:
parent
b0a440b5d6
commit
1b4ff521eb
@ -1,17 +1,30 @@
|
|||||||
[auth]
|
[auth]
|
||||||
|
# JWT encoding key
|
||||||
|
key = "a key"
|
||||||
|
# Disable registration
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
|
# Listener address
|
||||||
address = "127.0.0.1:8080"
|
address = "127.0.0.1:8080"
|
||||||
|
# Read & write timeout
|
||||||
|
# Warning: Too high can
|
||||||
|
# cause a slowloris attack
|
||||||
read_timeout = 10
|
read_timeout = 10
|
||||||
write_timeout = 10
|
write_timeout = 10
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
|
# Supported drivers:
|
||||||
|
# sqlite3
|
||||||
driver = "sqlite3"
|
driver = "sqlite3"
|
||||||
|
# URL (For sqlite, use the path)
|
||||||
url = "gopay.db"
|
url = "gopay.db"
|
||||||
|
# Max connections
|
||||||
max = 30
|
max = 30
|
||||||
|
# Max idle connections
|
||||||
idle = 30
|
idle = 30
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
|
# Level for database and server
|
||||||
# https://pkg.go.dev/github.com/rs/zerolog#Level
|
# https://pkg.go.dev/github.com/rs/zerolog#Level
|
||||||
level = "debug"
|
level = "debug"
|
||||||
|
Loading…
Reference in New Issue
Block a user