mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 13:52:46 +00:00
Config tweaks, make random jetstream storage path for CI
This commit is contained in:
parent
be60a3bda4
commit
74735e7cd5
4 changed files with 12 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
|
@ -70,6 +72,9 @@ 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