make reaching the media server from the internal domain work
This commit is contained in:
parent
879d87849b
commit
4ae7615a46
1 changed files with 57 additions and 47 deletions
|
@ -144,7 +144,8 @@ in {
|
|||
};
|
||||
}
|
||||
];
|
||||
services.nginx.virtualHosts."matrix.chir.rs" = {
|
||||
services.nginx.virtualHosts = let
|
||||
main = {
|
||||
sslCertificate = "/var/lib/acme/chir.rs/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/chir.rs/key.pem";
|
||||
locations."/_matrix" = {
|
||||
|
@ -181,7 +182,15 @@ in {
|
|||
'';
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."chir.rs" = {
|
||||
in {
|
||||
"matrix.int.chir.rs" = main;
|
||||
"matrix.chir.rs" =
|
||||
main
|
||||
// {
|
||||
sslCertificate = "/var/lib/acme/int.chir.rs/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/int.chir.rs/key.pem";
|
||||
};
|
||||
"chir.rs" = {
|
||||
locations."/.well-known/matrix/server" = {
|
||||
extraConfig = ''
|
||||
return 200 '{ "m.server": "matrix.chir.rs:443" }';
|
||||
|
@ -194,4 +203,5 @@ in {
|
|||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue