feat: Add sliding sync proxy

This commit is contained in:
Emelie Graven 2023-10-13 13:32:53 +02:00
parent 1c537e6c1b
commit b2bd89105d
No known key found for this signature in database
GPG key ID: EF3EE9A5A1427BF2
2 changed files with 7 additions and 2 deletions

View file

@ -5,8 +5,9 @@
enableACME = true;
forceSSL = true;
locations."/".root = "/var/www/graven.dev/public";
locations."/_matrix".proxyPass = "http://127.0.0.1:8008";
locations."/_synapse".proxyPass = "http://127.0.0.1:8008";
locations."~ ^(\\/_matrix|\\/_synapse\\/client)".proxyPass = "http://127.0.0.1:8008";
locations."~ ^(\\/_matrix|\\/_synapse\\/client)".proxyPass = "http://127.0.0.1:8008";
locations."~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)".proxyPass = "http://127.0.0.1:8009";
locations."/.well-known/matrix/" = {
root = "/var/www/matrix/public";
extraConfig = ''