Use postgresql as database for Matrix bridges
This commit is contained in:
parent
27f170070c
commit
13a91c8948
|
@ -162,6 +162,16 @@ with pkgs;
|
|||
owner = "coolneng";
|
||||
group = "podman";
|
||||
};
|
||||
secrets.facebook = {
|
||||
file = secrets/facebook.age;
|
||||
owner = "matrix-as-facebook";
|
||||
group = "matrix-as-facebook";
|
||||
};
|
||||
secrets.signal = {
|
||||
file = secrets/signal.age;
|
||||
owner = "matrix-as-signal";
|
||||
group = "matrix-as-signal";
|
||||
};
|
||||
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Binary file not shown.
|
@ -15,4 +15,6 @@ in {
|
|||
"mqtt-sender.age".publicKeys = [ zion ];
|
||||
"mqtt-receiver.age".publicKeys = [ zion ];
|
||||
"nightscout.age".publicKeys = [ zion ];
|
||||
"facebook.age".publicKeys = [ zion ];
|
||||
"signal.age".publicKeys = [ zion ];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 iUaRGg J/gZDBtDsIzjCzO1y2vXgxl8YuvWJgcpk+8KMOp63kg
|
||||
1XF9JFAIscHWFJMTctZOxVIBYhYliUFays5gwjZt6hs
|
||||
-> vM4\2y\'-grease
|
||||
bj9VKIuH0l1v5X8N2v4p+u3VySDKjj3WAyVZ7f+wmy16wncrNyMtiUZ+ELBWfqXd
|
||||
XOyeGZoKBHwd8lOgkZ+va0BEkBJs9piX
|
||||
--- K2uN9JxuqPQpAxjQ+6dgsqhsq50nTkLsw8QGJprE5hQ
|
||||
HÈó²SÍ:¤eJ4}'˜¨›TØÔ˦œ†[Â'‡Möì²9†à×E6_®§°¶ÉùØ_‚¸ˆ´yPM8''¬'¹F¦¶‹<C2B6>ŒáäRÚ¡"¯Ý<C2AF>±XæúÔÈ;ò¸4¼J/>kÝ5Ê<¾å:ßM»lK$¼ÓŸqöSô„»À#ºÅŒ<04>jÁX)ÀÓv¶Žô–¬OuÚøJ´P¤¿˜~
|
Binary file not shown.
Loading…
Reference in New Issue