forked from pub-solar/infra
fix: add matrix well-known for pub.solar
This commit is contained in:
parent
8f603dad45
commit
6fa03994b1
|
@ -6,8 +6,8 @@ let
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
'';
|
'';
|
||||||
clientConfig = import ./matrix/element-client-config.nix;
|
clientConfig = import ./matrix/element-client-config.nix;
|
||||||
wellKnownClient."m.homeserver".base_url = "https://matrix.test.pub.solar";
|
wellKnownClient."m.homeserver".base_url = "https://matrix.pub.solar";
|
||||||
wellKnownServer."m.server" = "matrix.test.pub.solar:8448";
|
wellKnownServer."m.server" = "matrix.pub.solar:8448";
|
||||||
mkWellKnown = data: ''
|
mkWellKnown = data: ''
|
||||||
add_header Content-Type application/json;
|
add_header Content-Type application/json;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
@ -20,12 +20,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"test.pub.solar" = {
|
"pub.solar" = {
|
||||||
root = "/dev/null";
|
|
||||||
|
|
||||||
forceSSL = lib.mkDefault true;
|
|
||||||
enableACME = lib.mkDefault true;
|
|
||||||
|
|
||||||
locations = wellKnownLocations;
|
locations = wellKnownLocations;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue