bvm-matrix: add element

This commit is contained in:
Luke Granger-Brown 2021-05-22 23:17:27 +00:00
parent 4907f97d57
commit 1f6fc87363

View file

@ -94,6 +94,26 @@ in {
locations."/".return = "301 https://element.zxcvbnm.ninja$request_uri";
locations."/_matrix".proxyPass = "http://[::1]:8008";
};
"element.zxcvbnm.ninja" = {
forceSSL = true;
useACMEHost = "matrix.zxcvbnm.ninja";
extraConfig = ''
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "frame-ancestors 'none'";
'';
root = pkgs.element-web.override {
conf = {
default_server_config."m.homeserver" = {
base_url = "zxcvbnm.ninja";
server_name = "matrix.zxcvbnm.ninja";
};
disable_guests = true;
};
};
};
};
};
services.matrix-synapse = {