bvm-matrix: add element
This commit is contained in:
parent
4907f97d57
commit
1f6fc87363
1 changed files with 20 additions and 0 deletions
|
@ -94,6 +94,26 @@ in {
|
||||||
locations."/".return = "301 https://element.zxcvbnm.ninja$request_uri";
|
locations."/".return = "301 https://element.zxcvbnm.ninja$request_uri";
|
||||||
locations."/_matrix".proxyPass = "http://[::1]:8008";
|
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 = {
|
services.matrix-synapse = {
|
||||||
|
|
Loading…
Reference in a new issue