From 42c6068f6c2b171f96be9918f979f3febbab5267 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Mon, 16 Oct 2023 15:38:46 +0200 Subject: [PATCH] Add manhole to synapse Signed-off-by: magic_rb --- nixng/containers/matrix/synapse/generic_worker.nix | 7 +++++++ nixng/containers/matrix/synapse/synapse.nix | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/nixng/containers/matrix/synapse/generic_worker.nix b/nixng/containers/matrix/synapse/generic_worker.nix index 8fc0f15..caca78c 100644 --- a/nixng/containers/matrix/synapse/generic_worker.nix +++ b/nixng/containers/matrix/synapse/generic_worker.nix @@ -17,6 +17,8 @@ makeSystem { type.services = { }; }; + environment.systemPackages = [ pkgs.openssh ]; + services.synapse.workers.${name} = { package = import ./synapse-package.nix pkgs; settings = { @@ -37,6 +39,11 @@ makeSystem { } ]; } + { + port = 9000; + bind_addresses = [ "127.0.0.1" ]; + type = "manhole"; + } ]; worker_log_config = logConfig pkgs; diff --git a/nixng/containers/matrix/synapse/synapse.nix b/nixng/containers/matrix/synapse/synapse.nix index 065fdec..25a113b 100644 --- a/nixng/containers/matrix/synapse/synapse.nix +++ b/nixng/containers/matrix/synapse/synapse.nix @@ -20,6 +20,8 @@ makeSystem { type.services = { }; }; + environment.systemPackages = [ pkgs.openssh ]; + services.synapse = { enable = true; package = import ./synapse-package.nix pkgs; @@ -48,6 +50,11 @@ makeSystem { compress = false; }; } + { + port = 9000; + bind_addresses = [ "127.0.0.1" ]; + type = "manhole"; + } ]; public_baseurl = "https://matrix.redalder.org/";