Optimize dendrite performance
This commit is contained in:
parent
8682f11eb9
commit
4156fb2962
|
@ -3,7 +3,13 @@
|
|||
with pkgs;
|
||||
|
||||
# NOTE Reference the environment variable set in the corresponding agenix secret
|
||||
let database.connection_string = "$DB_STRING";
|
||||
let
|
||||
database = {
|
||||
connection_string = "$DB_STRING";
|
||||
max_open_conns = 100;
|
||||
max_idle_conns = 5;
|
||||
conn_max_lifetime = -1;
|
||||
};
|
||||
|
||||
in {
|
||||
# Matrix server configuration
|
||||
|
@ -17,6 +23,7 @@ in {
|
|||
server_name = "coolneng.duckdns.org";
|
||||
private_key = config.age.secrets.dendrite.path;
|
||||
inherit database;
|
||||
dns_cache.enabled = true;
|
||||
};
|
||||
# HACK Inherit postgres connection string for the rest of the DBs
|
||||
app_service_api = {
|
||||
|
|
Loading…
Reference in New Issue