Compare commits
2 Commits
46f7e43335
...
4156fb2962
Author | SHA1 | Date |
---|---|---|
coolneng | 4156fb2962 | |
coolneng | 8682f11eb9 |
|
@ -3,7 +3,13 @@
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
# NOTE Reference the environment variable set in the corresponding agenix secret
|
# 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 {
|
in {
|
||||||
# Matrix server configuration
|
# Matrix server configuration
|
||||||
|
@ -17,6 +23,7 @@ in {
|
||||||
server_name = "coolneng.duckdns.org";
|
server_name = "coolneng.duckdns.org";
|
||||||
private_key = config.age.secrets.dendrite.path;
|
private_key = config.age.secrets.dendrite.path;
|
||||||
inherit database;
|
inherit database;
|
||||||
|
dns_cache.enabled = true;
|
||||||
};
|
};
|
||||||
# HACK Inherit postgres connection string for the rest of the DBs
|
# HACK Inherit postgres connection string for the rest of the DBs
|
||||||
app_service_api = {
|
app_service_api = {
|
||||||
|
|
|
@ -186,6 +186,10 @@
|
||||||
host all all 127.0.0.1/32 trust
|
host all all 127.0.0.1/32 trust
|
||||||
host all all ::1/128 trust
|
host all all ::1/128 trust
|
||||||
'';
|
'';
|
||||||
|
settings = {
|
||||||
|
max_connections = "300";
|
||||||
|
shared_buffers = "512MB";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Restart reverse proxy after services startup
|
# Restart reverse proxy after services startup
|
||||||
|
|
Loading…
Reference in New Issue