port synapse to postgres
This commit is contained in:
parent
183df298a7
commit
f8ed25e743
@ -6,11 +6,11 @@ with import ./network.nix;
|
|||||||
matrix-synapse = {
|
matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
server_name = "${matrixdomain}";
|
server_name = "${matrixdomain}";
|
||||||
database_type = "sqlite3";
|
database_name = "synapse";
|
||||||
public_baseurl = "https://${matrixdomain}";
|
public_baseurl = "https://${matrixdomain}";
|
||||||
registration_shared_secret = "runas!";
|
registration_shared_secret = "runas!";
|
||||||
dynamic_thumbnails = true;
|
dynamic_thumbnails = true;
|
||||||
enable_registration = true;
|
#enable_registration = true;
|
||||||
app_service_config_files = [
|
app_service_config_files = [
|
||||||
"/var/lib/matrix-synapse/discord-registration.yaml"
|
"/var/lib/matrix-synapse/discord-registration.yaml"
|
||||||
"/var/lib/matrix-synapse/telegram-registration.yaml"
|
"/var/lib/matrix-synapse/telegram-registration.yaml"
|
||||||
@ -39,6 +39,19 @@ with import ./network.nix;
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postgresql = {
|
||||||
|
enable = true;
|
||||||
|
ensureDatabases = [ "synapse" ];
|
||||||
|
ensureUsers = [
|
||||||
|
{
|
||||||
|
name = "matrix-synapse";
|
||||||
|
ensurePermissions = {
|
||||||
|
"DATABASE synapse" = "ALL PRIVILEGES";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nginx.virtualHosts = {
|
nginx.virtualHosts = {
|
||||||
# server
|
# server
|
||||||
${matrixdomain} = {
|
${matrixdomain} = {
|
||||||
|
Loading…
Reference in New Issue
Block a user