Added bcrypt cost
This commit is contained in:
parent
26edac76ce
commit
2c95bc0a0f
@ -3,6 +3,9 @@
|
|||||||
secret = "a key"
|
secret = "a key"
|
||||||
# Disable registration
|
# Disable registration
|
||||||
disabled = false
|
disabled = false
|
||||||
|
# bcrypt cost
|
||||||
|
# https://pkg.go.dev/golang.org/x/crypto/bcrypt#pkg-constants
|
||||||
|
cost = 10
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
# Listener address
|
# Listener address
|
||||||
|
@ -26,6 +26,7 @@ type Config struct {
|
|||||||
type Auth struct {
|
type Auth struct {
|
||||||
Secret string `toml:"secret"`
|
Secret string `toml:"secret"`
|
||||||
Disabled bool `toml:"disabled"`
|
Disabled bool `toml:"disabled"`
|
||||||
|
Cost int `toml:"cost"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Server configuration
|
// Server configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user