Finish configuring sliding sync

This commit is contained in:
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; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/".root = "/var/www/graven.dev/public"; locations."/".root = "/var/www/graven.dev/public";
locations."~ ^(\\/_matrix|\\/_synapse\\/client)".proxyPass = "http://127.0.0.1:8008"; locations."~ ^/(client|_matrix/client/unstable/org.matrix.msc3575/sync)" = {
locations."~ ^(\\/_matrix|\\/_synapse\\/client)".proxyPass = "http://127.0.0.1:8008"; 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/" = { locations."/.well-known/matrix/" = {
root = "/var/www/matrix/public"; root = "/var/www/matrix/public";
extraConfig = '' extraConfig = ''

View file

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