diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-03-03 01:37:39 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-03-03 01:49:48 +0100 |
commit | 3cc243581635674b00eec8bede9a04df266cb3fa (patch) | |
tree | c4b90a722920a3f9a0f7183fd4d52e8516a09032 /systems | |
parent | 0efc98bb10c3d1d7a6230b16e0e6caea0db16160 (diff) | |
download | Nix-3cc243581635674b00eec8bede9a04df266cb3fa.tar.gz Nix-3cc243581635674b00eec8bede9a04df266cb3fa.tar.zst Nix-3cc243581635674b00eec8bede9a04df266cb3fa.zip |
Host matrix element frontend on eldiron
Diffstat (limited to 'systems')
-rw-r--r-- | systems/eldiron/websites/tools/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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 | |||
76 | 76 | ||
77 | landing = pkgs.callPackage ./landing.nix { }; | 77 | landing = pkgs.callPackage ./landing.nix { }; |
78 | 78 | ||
79 | matrix = pkgs.element-web.override { | ||
80 | conf = { | ||
81 | default_server_config."m.homeserver" = { | ||
82 | base_url = "https://immae.ems.host"; | ||
83 | server_name = "immae.eu"; | ||
84 | }; | ||
85 | default_server_config."m.identity_server" = { | ||
86 | base_url = "https://vector.im"; | ||
87 | }; | ||
88 | room_directory.servers = [ "immae.eu" "matrix.org" ]; | ||
89 | }; | ||
90 | }; | ||
91 | |||
79 | cfg = config.myServices.websites.tools.tools; | 92 | cfg = config.myServices.websites.tools.tools; |
80 | pcfg = config.services.phpfpm.pools; | 93 | pcfg = config.services.phpfpm.pools; |
81 | in { | 94 | in { |
@@ -273,6 +286,13 @@ in { | |||
273 | SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost" | 286 | SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost" |
274 | </FilesMatch> | 287 | </FilesMatch> |
275 | </Directory> | 288 | </Directory> |
289 | |||
290 | Alias /matrix ${matrix} | ||
291 | <Directory "${matrix}"> | ||
292 | DirectoryIndex index.html | ||
293 | AllowOverride None | ||
294 | Require all granted | ||
295 | </Directory> | ||
276 | '' | 296 | '' |
277 | ]; | 297 | ]; |
278 | }; | 298 | }; |