]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Host matrix element frontend on eldiron
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 3 Mar 2024 00:37:39 +0000 (01:37 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 3 Mar 2024 00:49:48 +0000 (01:49 +0100)
deploy/flake.lock
flake.lock
flakes/flake.lock
systems/eldiron/websites/tools/default.nix

index e469f5ac1a7b6b126b1e2f3375d682cefc0f239a..071f24f3a1ae91ed74e47c6163b5f06b93bb0a32 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-MC76gRRjkPwqZjcPsDrZiVYqUBdRNAeA6bUx6Ru5cWc=",
+        "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=",
         "path": "../flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=",
+        "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=",
         "path": "../systems/eldiron",
         "type": "path"
       },
index 5a033661078bf0b38ca40cfae86abd626d0d315f..11828ec21eee1d6cd1ac7b369dad7f4cd53c0987 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-MC76gRRjkPwqZjcPsDrZiVYqUBdRNAeA6bUx6Ru5cWc=",
+        "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=",
         "path": "./flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=",
+        "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=",
         "path": "../systems/eldiron",
         "type": "path"
       },
index 5eb06c60815c417c6d53b10c1a5a8983edb2423a..24539242007b6340ab641ea74be20f8f42c53a75 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-QCaeTC61eUGcWqLsPhkHg15UJYZk1CxvxpKR7SNJ0ic=",
+        "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=",
         "path": "../systems/eldiron",
         "type": "path"
       },
index ecfba030f9b1e7d998bf2d2b9d227eb488faaeaf..b396d44e611c239c275dd4a25cff0b9d870d6d32 100644 (file)
@@ -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"
             </FilesMatch>
           </Directory>
+
+          Alias /matrix ${matrix}
+          <Directory "${matrix}">
+            DirectoryIndex index.html
+            AllowOverride None
+            Require all granted
+          </Directory>
         ''
       ];
     };