matrix: update sliding sync
This commit is contained in:
parent
a33a972a58
commit
bf884f131a
1 changed files with 0 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue