src.nth.io/

summaryrefslogtreecommitdiff
path: root/dendrite/server/templates
diff options
context:
space:
mode:
Diffstat (limited to 'dendrite/server/templates')
-rw-r--r--dendrite/server/templates/dendrite.yaml.j28
-rw-r--r--dendrite/server/templates/setup_db.psql.j22
2 files changed, 5 insertions, 5 deletions
diff --git a/dendrite/server/templates/dendrite.yaml.j2 b/dendrite/server/templates/dendrite.yaml.j2
index 350b96d..0fe6aa2 100644
--- a/dendrite/server/templates/dendrite.yaml.j2
+++ b/dendrite/server/templates/dendrite.yaml.j2
@@ -38,7 +38,7 @@ global:
# you must configure the "database" block for each component instead.
database:
connection_string: postgresql://{{dendrite_db_user}}:{{dendrite_db_pass}}@localhost/{{dendrite_db}}?sslmode=disable
- max_open_conns: 90
+ max_open_conns: 25
max_idle_conns: 5
conn_max_lifetime: -1
@@ -139,9 +139,9 @@ global:
# Optional DNS cache. The DNS cache may reduce the load on DNS servers if there
# is no local caching resolver available for use.
dns_cache:
- enabled: false
- cache_size: 256
- cache_lifetime: "5m" # 5 minutes; https://pkg.go.dev/time@master#ParseDuration
+ enabled: true
+ cache_size: 4096
+ cache_lifetime: "10m" # 10 minutes; https://pkg.go.dev/time@master#ParseDuration
# Configuration for the Appservice API.
app_service_api:
diff --git a/dendrite/server/templates/setup_db.psql.j2 b/dendrite/server/templates/setup_db.psql.j2
index 29c6974..27667cc 100644
--- a/dendrite/server/templates/setup_db.psql.j2
+++ b/dendrite/server/templates/setup_db.psql.j2
@@ -1,3 +1,3 @@
CREATE USER {{dendrite_db_user}};
-ALTER USER {{dendrite_db_user}} WITH PASSWORD '{{dendrite_db_pass}}'
+ALTER USER {{dendrite_db_user}} WITH PASSWORD '{{dendrite_db_pass}}';
CREATE DATABASE {{dendrite_db}} WITH OWNER {{dendrite_db_user}};