Use postgresql as database for Matrix bridges
This commit is contained in:
@@ -26,14 +26,7 @@ in {
|
||||
dns_cache.enabled = true;
|
||||
};
|
||||
# HACK Inherit postgres connection string for the rest of the DBs
|
||||
app_service_api = {
|
||||
inherit database;
|
||||
config_files = [
|
||||
"/var/lib/matrix-as-facebook/facebook-registration.yaml"
|
||||
"/var/lib/matrix-as-signal/signal-registration.yaml"
|
||||
"/var/lib/matrix-as-telegram/telegram-registration.yaml"
|
||||
];
|
||||
};
|
||||
app_service_api = { inherit database; };
|
||||
media_api = { inherit database; };
|
||||
room_server = { inherit database; };
|
||||
push_server = { inherit database; };
|
||||
@@ -71,6 +64,7 @@ in {
|
||||
package = mautrix-telegram;
|
||||
serviceConfig.EnvironmentFile = config.age.secrets.telegram.path;
|
||||
settings = {
|
||||
appservice.database = "$DB_STRING";
|
||||
homeserver.software = "standard";
|
||||
telegram = {
|
||||
api_id = "$API_ID";
|
||||
@@ -86,18 +80,24 @@ in {
|
||||
port = 8228;
|
||||
format = "mautrix-python";
|
||||
package = mautrix-facebook;
|
||||
settings.homeserver.software = "standard";
|
||||
serviceConfig.EnvironmentFile = config.age.secrets.facebook.path;
|
||||
settings = {
|
||||
appservice.database = "$DB_STRING";
|
||||
homeserver.software = "standard";
|
||||
};
|
||||
};
|
||||
signal = {
|
||||
port = 8338;
|
||||
format = "mautrix-python";
|
||||
package = mautrix-signal;
|
||||
serviceConfig = {
|
||||
EnvironmentFile = config.age.secrets.signal.path;
|
||||
StateDirectory = [ "matrix-as-signal" "signald" ];
|
||||
JoinNamespaceOf = "signald.service";
|
||||
SupplementaryGroups = [ "signald" ];
|
||||
};
|
||||
settings = {
|
||||
appservice.database = "$DB_STRING";
|
||||
homeserver.software = "standard";
|
||||
signal = {
|
||||
socket_path = config.services.signald.socketPath;
|
||||
|
||||
Reference in New Issue
Block a user