Added bcrypt cost

This commit is contained in:
perp 2024-06-03 14:07:22 +01:00
parent 26edac76ce
commit 2c95bc0a0f
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,9 @@
secret = "a key"
# Disable registration
disabled = false
# bcrypt cost
# https://pkg.go.dev/golang.org/x/crypto/bcrypt#pkg-constants
cost = 10
[server]
# Listener address

View File

@ -26,6 +26,7 @@ type Config struct {
type Auth struct {
Secret string `toml:"secret"`
Disabled bool `toml:"disabled"`
Cost int `toml:"cost"`
}
// Server configuration