Skip to content

Commit

Permalink
matrix: drop sliding sync proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Oct 3, 2024
1 parent 5649f96 commit 44dd748
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions hosts/carrot/matrix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
let
fqdn = "bitflip.jetzt";
turnRealm = "turn.${fqdn}";
syncv3Domain = "syncv3.${fqdn}";
clientConfig = {
"m.homeserver".base_url = "https://${fqdn}";
"m.identity_server".base_url = "https://vector.im";
"org.matrix.msc3575.proxy".url = "https://${syncv3Domain}";
};
serverConfig."m.server" = "${config.services.matrix-synapse.settings.server_name}:443";
mkWellKnown = data: ''
Expand All @@ -24,7 +22,6 @@ in
x.sops.secrets = {
"services/synapse/signing_key".owner = "matrix-synapse";
"services/synapse/registration_shared_secret".owner = "matrix-synapse";
"services/synapse/sliding_sync_env".owner = "root";
};

networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 8088 ];
Expand Down Expand Up @@ -60,11 +57,6 @@ in
return 404;
'';
};
virtualHosts."${syncv3Domain}" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}";
};
};

services.coturn = {
Expand Down Expand Up @@ -202,16 +194,6 @@ in
};
};

services.matrix-sliding-sync = {
enable = true;
environmentFile = config.sops.secrets."services/synapse/sliding_sync_env".path;
settings = {
SYNCV3_SERVER = "https://bitflip.jetzt";
SYNCV3_BINDADDR = "[::]:8009";
SYNCV3_LOG_LEVEL = "error";
};
};

# remove chmod for signing-key file
systemd.services.matrix-synapse.serviceConfig.ExecStartPre =
let
Expand Down

0 comments on commit 44dd748

Please sign in to comment.