diff --git a/system/nixos/matrix/synapse.nix b/system/nixos/matrix/synapse.nix index b5143d5..93abf7f 100644 --- a/system/nixos/matrix/synapse.nix +++ b/system/nixos/matrix/synapse.nix @@ -92,17 +92,6 @@ in extraConfigFiles = [ config.age.secrets.synapse-extra-config.path ]; }; - services.matrix-sliding-sync = { - enable = true; - - settings = { - SYNCV3_SERVER = "https://${fqdn}"; - SYNCV3_BINDADDR = "127.0.0.1:8009"; - }; - - environmentFile = config.age.secrets.synapse-sliding-sync-config.path; - }; - systemd.services.matrix-synapse.after = [ "postgresql.service" ]; services.nginx.virtualHosts."${fqdn}" = { @@ -115,16 +104,6 @@ in extraConfig = '' add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; - location ~* ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) { - proxy_pass http://127.0.0.1:8009; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Server $host; - } - location ~* ^(\/_matrix|\/_synapse\/client) { proxy_pass http://127.0.0.1:8008; proxy_set_header Host $host;