mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
feat: adds database for synapse
This commit is contained in:
parent
05a2f0a80f
commit
62773f907c
1 changed files with 16 additions and 5 deletions
|
|
@ -94,14 +94,25 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
postgresql = {
|
||||
enable = true;
|
||||
initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
|
||||
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
|
||||
TEMPLATE template0
|
||||
LC_COLLATE = "C"
|
||||
LC_CTYPE = "C";
|
||||
'';
|
||||
};
|
||||
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# database.name = "psycopg2";
|
||||
# database.args = {
|
||||
# user = "matrix-synapse";
|
||||
# password = "synapse";
|
||||
# };
|
||||
database.name = "matrix-synapse";
|
||||
database.args = {
|
||||
user = "matrix-synapse";
|
||||
password = "synapse";
|
||||
};
|
||||
server_name = "${fqdn}";
|
||||
public_baseurl = "https://${fqdn}";
|
||||
enable_registration = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue