From: Ismaƫl Bouya Date: Sun, 3 Mar 2024 00:37:39 +0000 (+0100) Subject: Host matrix element frontend on eldiron X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3cc243581635674b00eec8bede9a04df266cb3fa;p=perso%2FImmae%2FConfig%2FNix.git Host matrix element frontend on eldiron --- diff --git a/deploy/flake.lock b/deploy/flake.lock index e469f5a..071f24f 100644 --- a/deploy/flake.lock +++ b/deploy/flake.lock @@ -2783,7 +2783,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-MC76gRRjkPwqZjcPsDrZiVYqUBdRNAeA6bUx6Ru5cWc=", + "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=", "path": "../flakes", "type": "path" }, @@ -3903,7 +3903,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=", + "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", "path": "../systems/eldiron", "type": "path" }, diff --git a/flake.lock b/flake.lock index 5a03366..11828ec 100644 --- a/flake.lock +++ b/flake.lock @@ -2664,7 +2664,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-MC76gRRjkPwqZjcPsDrZiVYqUBdRNAeA6bUx6Ru5cWc=", + "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=", "path": "./flakes", "type": "path" }, @@ -3919,7 +3919,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=", + "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", "path": "../systems/eldiron", "type": "path" }, diff --git a/flakes/flake.lock b/flakes/flake.lock index 5eb06c6..2453924 100644 --- a/flakes/flake.lock +++ b/flakes/flake.lock @@ -3824,7 +3824,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=", + "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", "path": "../systems/eldiron", "type": "path" }, 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 + '' ]; };