aboutsummaryrefslogtreecommitdiff
path: root/systems/eldiron
diff options
context:
space:
mode:
Diffstat (limited to 'systems/eldiron')
-rw-r--r--systems/eldiron/websites/tools/default.nix20
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;
81in { 94in {
@@ -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 };