aboutsummaryrefslogtreecommitdiff
path: root/dendrite-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite-config.yaml')
-rw-r--r--dendrite-config.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/dendrite-config.yaml b/dendrite-config.yaml
index 22c7b902..13564590 100644
--- a/dendrite-config.yaml
+++ b/dendrite-config.yaml
@@ -340,6 +340,13 @@ sync_api:
# Configuration for the User API.
user_api:
+ # The cost when hashing passwords on registration/login. Default: 10. Min: 4, Max: 31
+ # See https://pkg.go.dev/golang.org/x/crypto/bcrypt for more information.
+ # Setting this lower makes registration/login consume less CPU resources at the cost of security
+ # should the database be compromised. Setting this higher makes registration/login consume more
+ # CPU resources but makes it harder to brute force password hashes.
+ # This value can be low if performing tests or on embedded Dendrite instances (e.g WASM builds)
+ # bcrypt_cost: 10
internal_api:
listen: http://localhost:7781
connect: http://localhost:7781