Finish configuring sliding sync
This commit is contained in:
parent
b2bd89105d
commit
86fef3990e
Binary file not shown.
Binary file not shown.
BIN
config/hosts/wind/data/secrets/synapse_sliding_sync_env
Normal file
BIN
config/hosts/wind/data/secrets/synapse_sliding_sync_env
Normal file
Binary file not shown.
|
@ -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 = ''
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue