feat: Add sliding sync proxy
This commit is contained in:
parent
1c537e6c1b
commit
b2bd89105d
|
@ -5,8 +5,9 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".root = "/var/www/graven.dev/public";
|
locations."/".root = "/var/www/graven.dev/public";
|
||||||
locations."/_matrix".proxyPass = "http://127.0.0.1:8008";
|
locations."~ ^(\\/_matrix|\\/_synapse\\/client)".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."~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)".proxyPass = "http://127.0.0.1:8009";
|
||||||
locations."/.well-known/matrix/" = {
|
locations."/.well-known/matrix/" = {
|
||||||
root = "/var/www/matrix/public";
|
root = "/var/www/matrix/public";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
withJemalloc = true;
|
withJemalloc = true;
|
||||||
extraConfigFiles = [ config.secrets.files.synapse_extra_config.file ];
|
extraConfigFiles = [ config.secrets.files.synapse_extra_config.file ];
|
||||||
|
sliding-sync = {
|
||||||
|
enable = true;
|
||||||
|
settings.SYNCV3_SERVER = "https://graven.dev";
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
server_name = "graven.dev";
|
server_name = "graven.dev";
|
||||||
enable_registration = false;
|
enable_registration = false;
|
||||||
|
|
Loading…
Reference in a new issue