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 {
SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost"
</FilesMatch>
</Directory>
+
+ Alias /matrix ${matrix}
+ <Directory "${matrix}">
+ DirectoryIndex index.html
+ AllowOverride None
+ Require all granted
+ </Directory>
''
];
};