From 3cc243581635674b00eec8bede9a04df266cb3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 3 Mar 2024 01:37:39 +0100 Subject: Host matrix element frontend on eldiron --- systems/eldiron/websites/tools/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'systems') diff --git a/systems/eldiron/websites/tools/default.nix b/systems/eldiron/websites/tools/default.nix index ecfba03..b396d44 100644 --- a/systems/eldiron/websites/tools/default.nix +++ b/systems/eldiron/websites/tools/default.nix @@ -76,6 +76,19 @@ let landing = pkgs.callPackage ./landing.nix { }; + matrix = pkgs.element-web.override { + conf = { + default_server_config."m.homeserver" = { + base_url = "https://immae.ems.host"; + server_name = "immae.eu"; + }; + default_server_config."m.identity_server" = { + base_url = "https://vector.im"; + }; + room_directory.servers = [ "immae.eu" "matrix.org" ]; + }; + }; + cfg = config.myServices.websites.tools.tools; pcfg = config.services.phpfpm.pools; in { @@ -273,6 +286,13 @@ in { SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost" + + Alias /matrix ${matrix} + + DirectoryIndex index.html + AllowOverride None + Require all granted + '' ]; }; -- cgit v1.2.3