VEGAS/matrix: fix CORS policy

This commit is contained in:
Max Headroom 2022-08-08 20:32:13 +02:00
parent 50f689c2ec
commit 88b214bce1

View file

@ -118,7 +118,12 @@ in {
access_log off;
'';
};
locations."= /.well-known/matrix/client".alias = clientConfigJSON;
locations."= /.well-known/matrix/client" = {
alias = clientConfigJSON;
extraConfig = ''
add_header Access-Control-Allow-Origin "*";
'';
};
};
};
systemd.services = lib.genAttrs [ "coturn" "matrix-appservice-discord" "matrix-synapse" ] (_: {