Skip to content

Commit

Permalink
wynne: disable sliding sync
Browse files Browse the repository at this point in the history
  • Loading branch information
adtya committed Oct 25, 2024
1 parent 5f74b4f commit bd8c318
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
3 changes: 2 additions & 1 deletion hosts/wynne/services/apps/acomputer.lol.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ in
handle /.well-known/matrix/client {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.${domainName}"}}`
#respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.${domainName}"}}`
respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}}`
}
'';
};
Expand Down
31 changes: 11 additions & 20 deletions hosts/wynne/services/apps/dendrite/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in
logFormat = logFormat domainName;
extraConfig = ''
reverse_proxy /client/* 127.0.0.1:8009
reverse_proxy /_matrix/client/unstable/org.matrix.msc3575/sync 127.0.0.1:8009
# reverse_proxy /_matrix/client/unstable/org.matrix.msc3575/sync 127.0.0.1:8009
reverse_proxy /_matrix/* 127.0.0.1:8008
reverse_proxy /_dendrite/* 127.0.0.1:8008
reverse_proxy /_synapse/* 127.0.0.1:8008
Expand All @@ -40,28 +40,19 @@ in
transport.useCompression = true;
}
];
matrix-sliding-sync = {
enable = true;
settings = {
SYNCV3_SERVER = "https://${domainName}";
SYNCV3_BINDADDR = "127.0.0.1:8009";
SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable";
};
environmentFile = config.sops.secrets."matrix/syncv3_secret".path;
};
#matrix-sliding-sync = {
#enable = true;
#settings = {
# SYNCV3_SERVER = "https://${domainName}";
# SYNCV3_BINDADDR = "127.0.0.1:8009";
# SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable";
#};
#environmentFile = config.sops.secrets."matrix/syncv3_secret".path;
#};
};
systemd.services.dendrite =
let
dendrite_package = pkgs.dendrite.overrideAttrs rec {
version = "0.13.8";
src = pkgs.fetchFromGitHub {
owner = "matrix-org";
repo = "dendrite";
rev = "v${version}";
hash = "sha256-zUpZdG2cdZ95L70qLG2HaUlD+G66XTi4f1V4+ZZAh30=";
};
vendorHash = "sha256-rGOB1ikY3BgChvD1YZUF66g8P6gE29b/k9kxvHR0+WQ=";
};
dendrite_package = pkgs.dendrite;
in
{
description = "Dendrite Matrix homeserver";
Expand Down

0 comments on commit bd8c318

Please sign in to comment.