matrix-synapse: Move to marabethia
All checks were successful
Cachix / build (elendel) (push) Successful in 1m16s
Cachix / build (kholinar) (push) Successful in 2m10s
Cachix / build (lasting-integrity) (push) Successful in 1m7s
Cachix / build (marabethia) (push) Successful in 1m31s
Cachix / build (urithiru) (push) Successful in 1m20s

This commit is contained in:
Charlotte Van Petegem 2024-11-11 18:59:46 +01:00
parent 4b0105bd7a
commit aa0476874e
No known key found for this signature in database
GPG key ID: 019E764B7184435A
58 changed files with 202 additions and 202 deletions

View file

@ -84,6 +84,7 @@
services = {
git.enable = true;
mail.enable = true;
matrix.enable = true;
nextcloud.enable = true;
nginx.hosts = [
{
@ -109,6 +110,36 @@
options.locations."/".return = "307 https://www.vanpetegem.be$request_uri";
}
{ fqdn = "www.vanpetegem.be"; }
{
fqdn = "vanpetegem.me";
options = {
locations = {
"/_matrix" = {
proxyPass = "http://127.0.0.1:8448";
extraConfig = ''
proxy_read_timeout 600;
client_max_body_size 10M;
proxy_set_header X-Forwarded-Ssl on;
'';
};
"/.well-known/matrix" = {
root = pkgs.runCommand "well-known-matrix" { } ''
mkdir -p $out/.well-known/matrix
echo '{"m.server":"matrix.vanpetegem.me:443"}' > $out/.well-known/matrix/server
echo '{"m.homeserver":{"base_url":"https://matrix.vanpetegem.me"}}' > $out/.well-known/matrix/client
'';
extraConfig = ''
default_type application/json;
add_header 'access-control-allow-origin' '*' always;
add_header 'access-control-allow-methods' 'GET, HEAD, POST, PUT, DELETE, OPTIONS' always;
add_header 'access-control-allow-headers' 'X-Requested-With, Content-Type, Authorization, Date' always;
'';
priority = 1;
};
"/".return = "307 https://www.vanpetegem.me$request_uri";
};
};
}
{ fqdn = "www.vanpetegem.me"; }
];
};

View file

@ -69,6 +69,10 @@
device = "zroot/safe/services/mail";
fsType = "zfs";
};
"/var/lib/matrix-synapse" = {
device = "zroot/safe/services/matrix-synapse";
fsType = "zfs";
};
"/var/lib/nextcloud" = {
device = "zroot/safe/services/nextcloud";
fsType = "zfs";