mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 21:32:46 +00:00
Try to sane default on jetstream base path
This commit is contained in:
parent
ec4e0302c0
commit
ee6bfe24f5
3 changed files with 13 additions and 7 deletions
|
@ -1,8 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
|
@ -72,9 +70,6 @@ func main() {
|
|||
// don't hit matrix.org when running tests!!!
|
||||
cfg.SigningKeyServer.KeyPerspectives = config.KeyPerspectives{}
|
||||
cfg.UserAPI.BCryptCost = bcrypt.MinCost
|
||||
var id [8]byte
|
||||
_, _ = rand.Read(id[:])
|
||||
cfg.Global.JetStream.StoragePath = config.Path(hex.EncodeToString(id[:]))
|
||||
}
|
||||
|
||||
j, err := yaml.Marshal(cfg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue