diff options
| author | Mel <mel@rnrd.eu> | 2025-08-18 15:50:56 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-08-18 15:51:06 +0200 |
| commit | a76a5e9fad265f281c55b5e4a80ae97d9f234cc7 (patch) | |
| tree | f3c3c77c0fbec7e6d6da2546b27780cfd0b3c94f /services/conduwuit.nix | |
| parent | dcc5f8e5624919c887969343fc9b743b88c60ce7 (diff) | |
| download | network-a76a5e9fad265f281c55b5e4a80ae97d9f234cc7.tar.zst network-a76a5e9fad265f281c55b5e4a80ae97d9f234cc7.zip | |
Migrate Matrix from conduwuit to continuwuity, now on renard
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'services/conduwuit.nix')
| -rw-r--r-- | services/conduwuit.nix | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/services/conduwuit.nix b/services/conduwuit.nix deleted file mode 100644 index 03b0dcb..0000000 --- a/services/conduwuit.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ config, pkgs, auxiliaryPkgs, ... }: - -let - inherit (pkgs) conduwuit dockerTools; - inherit (auxiliaryPkgs) common; - - conduwuitLocalPort = 2123; - conduwuitDir = "/srv/conduwuit"; - - conduwuitImage = dockerTools.streamLayeredImage { - name = "conduwuit"; - tag = conduwuit.version; - fromImage = common.alpine.base; - - contents = [ conduwuit ]; - }; - -in -{ - age.secrets.conduwuit-registration-token = { - file = ../secrets/conduwuit-registration-token.age; - }; - - foundation.service.conduwuit = { - conduwuit = { - image = conduwuitImage; - ports = [ conduwuitLocalPort ]; - - volumes = [ - [ "${conduwuitDir}/db" "/var/lib/conduwuit" ] - [ "${conduwuitDir}/conduwuit.toml" "/etc/conduwuit/conduwuit.toml" ] - [ - "${config.age.secrets.conduwuit-registration-token.path}" - "/etc/conduwuit/registration-itoken" - ] - ]; - - environment = { - CONDUWUIT_CONFIG = "/etc/conduwuit/conduwuit.toml"; - }; - - entrypoint = "${conduwuit}/bin/conduit"; - }; - }; - - services.nginx.virtualHosts = { - "matrix.rnrd.eu" = let - proxySettings = { proxyPass = "http://127.0.0.1:${toString conduwuitLocalPort}"; }; - in - { - useACMEHost = "rnrd.eu"; - forceSSL = true; - - locations."/" = proxySettings; - locations."/_matrix" = proxySettings; - locations."/_conduwuit" = proxySettings; - - extraConfig = '' - client_max_body_size 20M; - - proxy_connect_timeout 600; - proxy_send_timeout 600; - proxy_read_timeout 600; - send_timeout 600; - - access_log /var/log/nginx/conduwuit.access.log json_combined; - ''; - }; - }; -} |
