diff options
author | Rory& <root@rory.gay> | 2024-05-09 19:38:41 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-05-09 19:38:41 +0200 |
commit | 13f078291d9ce80a62d89d7e4421270b44f01814 (patch) | |
tree | 872e600ee0c62d0c67eeef001381d3bac2821be6 /host | |
parent | Apparently it doesnt merge... (diff) | |
download | Rory-Open-Architecture-13f078291d9ce80a62d89d7e4421270b44f01814.tar.xz |
Sliding sync
Diffstat (limited to 'host')
-rwxr-xr-x | host/Rory-nginx/services/matrix/synapse.nix | 9 | ||||
-rwxr-xr-x | host/Rory-nginx/services/nginx/rory.gay/matrix.nix | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse.nix b/host/Rory-nginx/services/matrix/synapse.nix index 3edc87b..b5eaf2b 100755 --- a/host/Rory-nginx/services/matrix/synapse.nix +++ b/host/Rory-nginx/services/matrix/synapse.nix @@ -12,6 +12,15 @@ in enable = true; withJemalloc = true; + sliding-sync = { + enable = true; + settings = { + "SYNCV3_SERVER" = "http://localhost:8008"; + "SYNCV3_DB" = "postgresql://%2Frun%2Fpostgresql/syncv3" + "SYNCV3_BINDADDR" = "0.0.0.0:8100" + } + }; + # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html settings = { server_name = "rory.gay"; diff --git a/host/Rory-nginx/services/nginx/rory.gay/matrix.nix b/host/Rory-nginx/services/nginx/rory.gay/matrix.nix index 6a5bf47..0c3f6cc 100755 --- a/host/Rory-nginx/services/nginx/rory.gay/matrix.nix +++ b/host/Rory-nginx/services/nginx/rory.gay/matrix.nix @@ -35,7 +35,7 @@ more_set_headers 'Access-Control-Allow-Origin *'; return 200 '${builtins.toJSON { "m.homeserver".base_url = "https://matrix.rory.gay"; - "m.identity_server".base_url = "https://matrix.rory.gay"; + "org.matrix.msc3575.proxy".url = "https://matrix.rory.gay"; } }'; ''; @@ -64,4 +64,8 @@ } }'; ''; + + locations."~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = { + proxyPass = "http://localhost:8100"; + }; } |