1
0
Fork 0

matrix: update sliding sync

This commit is contained in:
Daniel Kempkens 2024-11-06 20:28:17 +01:00
parent a33a972a58
commit bf884f131a
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -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;