cluster/services/matrix: remove discord bridge
This commit is contained in:
parent
244c7c0e54
commit
cb6903e3d7
3 changed files with 1 additions and 27 deletions
|
@ -1,22 +0,0 @@
|
||||||
{ cluster, depot, ... }:
|
|
||||||
let
|
|
||||||
inherit (depot.lib.meta) domain;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
services.matrix-appservice-discord = {
|
|
||||||
enable = true;
|
|
||||||
environmentFile = cluster.config.services.matrix.secrets.discordAppServiceToken.path;
|
|
||||||
settings = {
|
|
||||||
bridge = {
|
|
||||||
inherit domain;
|
|
||||||
homeserverUrl = "https://matrix.${domain}:443";
|
|
||||||
disablePresence = false;
|
|
||||||
disableTypingNotifications = false;
|
|
||||||
disableDeletionForwarding = false;
|
|
||||||
enableSelfServiceBridging = true;
|
|
||||||
disableReadReceipts = false;
|
|
||||||
disableJoinLeaveNotifications = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@
|
||||||
homeserver = [
|
homeserver = [
|
||||||
./homeserver.nix
|
./homeserver.nix
|
||||||
./coturn.nix
|
./coturn.nix
|
||||||
./bridges/discord.nix
|
|
||||||
];
|
];
|
||||||
static = [
|
static = [
|
||||||
./federation.nix
|
./federation.nix
|
||||||
|
|
|
@ -77,9 +77,6 @@ in {
|
||||||
# HACK: upstream has a weird assertion that doesn't work with our HAProxy setup
|
# HACK: upstream has a weird assertion that doesn't work with our HAProxy setup
|
||||||
# this host gets overridden by dbConfigOut
|
# this host gets overridden by dbConfigOut
|
||||||
database = lib.recursiveUpdate dbConfig.database { args.host = "_patroni.local"; };
|
database = lib.recursiveUpdate dbConfig.database { args.host = "_patroni.local"; };
|
||||||
app_service_config_files = [
|
|
||||||
"/etc/synapse/discord-registration.yaml"
|
|
||||||
];
|
|
||||||
turn_uris = let
|
turn_uris = let
|
||||||
combinations = lib.cartesianProduct {
|
combinations = lib.cartesianProduct {
|
||||||
proto = [ "udp" "tcp" ];
|
proto = [ "udp" "tcp" ];
|
||||||
|
@ -115,7 +112,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services = lib.mkMerge [
|
systemd.services = lib.mkMerge [
|
||||||
(lib.genAttrs [ "coturn" "matrix-appservice-discord" "matrix-synapse" ] (_: {
|
(lib.genAttrs [ "coturn" "matrix-synapse" ] (_: {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Slice = "communications.slice";
|
Slice = "communications.slice";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue