Matrix stuff
This commit is contained in:
parent
927832bebb
commit
4bf30d4848
2 changed files with 21 additions and 4 deletions
1
hosts/greatyamada/services/matrix/default.nix
Normal file
1
hosts/greatyamada/services/matrix/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{ ... }: { imports = [ ./coturn.nix ./synapse.nix ]; }
|
|
@ -25,10 +25,26 @@ in {
|
|||
turn_uris = [ "turn:rcia.dev:3478" "turn:rcia.dev:3479" ];
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."matrix.rcia.dev" = {
|
||||
locations = {
|
||||
"/" = { proxyPass = "http://127.0.0.1:8008/_matrix/static"; };
|
||||
"/_matrix" = {
|
||||
proxyPass = "http://127.0.0.1:8008";
|
||||
recommendedProxySettings = true;
|
||||
clientMaxBodySize = "200M";
|
||||
};
|
||||
};
|
||||
# Federation
|
||||
listen = [{
|
||||
port = 8448;
|
||||
ssl = true;
|
||||
extraParameters = [ "default_server" ];
|
||||
}];
|
||||
};
|
||||
sops.secrets = {
|
||||
"matrix/secrets" = {
|
||||
path = "/var/lib/matrix-synapse/secrets";
|
||||
owner = "matrix-synapse";
|
||||
}
|
||||
}
|
||||
path = "/var/lib/matrix-synapse/secrets";
|
||||
owner = "matrix-synapse";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue