Finish configuring sliding sync

main
Amanda Graven 2023-10-16 07:56:23 +02:00
parent b2bd89105d
commit 86fef3990e
5 changed files with 9 additions and 3 deletions

View File

@ -5,9 +5,14 @@
enableACME = true;
forceSSL = true;
locations."/".root = "/var/www/graven.dev/public";
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."~ ^/(client|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
proxyPass = "http://127.0.0.1:8009";
priority = 900;
};
locations."~ ^(\\/_matrix|\\/_synapse\\/client)" = {
proxyPass = "http://127.0.0.1:8008";
priority = 1000;
};
locations."/.well-known/matrix/" = {
root = "/var/www/matrix/public";
extraConfig = ''

View File

@ -8,6 +8,7 @@
sliding-sync = {
enable = true;
settings.SYNCV3_SERVER = "https://graven.dev";
environmentFile = builtins.toString config.secrets.files.synapse_sliding_sync_env.file;
};
settings = {
server_name = "graven.dev";