X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=systems%2Feldiron%2Fwebsites%2Ftools%2Fdefault.nix;h=b396d44e611c239c275dd4a25cff0b9d870d6d32;hb=3cc243581635674b00eec8bede9a04df266cb3fa;hp=ecfba030f9b1e7d998bf2d2b9d227eb488faaeaf;hpb=0efc98bb10c3d1d7a6230b16e0e6caea0db16160;p=perso%2FImmae%2FConfig%2FNix.git 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 + '' ]; };