bicep/matrix: add module for adding stuff to well-known

This commit is contained in:
h7x4
2026-01-21 09:53:45 +09:00
parent 6b5c12a4b8
commit 75c52f63cc
4 changed files with 54 additions and 11 deletions

View File

@@ -132,21 +132,12 @@ in {
services.redis.servers."".enable = true;
services.pvv-matrix-well-known.server."m.server" = "matrix.pvv.ntnu.no:443";
services.nginx.virtualHosts."matrix.pvv.ntnu.no" = lib.mkMerge [
{
kTLS = true;
}
{
locations."/.well-known/matrix/server" = {
return = ''
200 '{"m.server": "matrix.pvv.ntnu.no:443"}'
'';
extraConfig = ''
default_type application/json;
add_header Access-Control-Allow-Origin *;
'';
};
}
{
locations."/_synapse/admin" = {
proxyPass = "http://$synapse_backend";