diff --git a/cmd/config.toml b/cmd/config.toml index 3619633..71bd617 100644 --- a/cmd/config.toml +++ b/cmd/config.toml @@ -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"