Update well-known delegation settings for Matrix
This commit is contained in:
parent
dc1bb22d9d
commit
27d21a548d
|
@ -40,12 +40,13 @@
|
||||||
"rewrite ^/gitea/(.*)$ https://git.coolneng.duckdns.org/$1 last;";
|
"rewrite ^/gitea/(.*)$ https://git.coolneng.duckdns.org/$1 last;";
|
||||||
"/miniflux/".extraConfig =
|
"/miniflux/".extraConfig =
|
||||||
"rewrite ^/miniflux/(.*)$ https://rss.coolneng.duckdns.org/$1 last;";
|
"rewrite ^/miniflux/(.*)$ https://rss.coolneng.duckdns.org/$1 last;";
|
||||||
|
# Delegation for Matrix
|
||||||
"/.well-known/" = {
|
"/.well-known/" = {
|
||||||
alias = "${../well-known}" + "/";
|
alias = "${../well-known}" + "/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
${config.services.nginx.commonHttpConfig}
|
${config.services.nginx.commonHttpConfig}
|
||||||
add_header Access-Control-Allow-Origin '*';
|
default_type application/json;
|
||||||
add_header Content-Type application/json;
|
add_header Access-Control-Allow-Origin * always;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -110,9 +111,9 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".root = pkgs.element-web.override {
|
locations."/".root = pkgs.element-web.override {
|
||||||
conf.default_server_config."m.homeserver" = {
|
conf.default_server_config = {
|
||||||
"base_url" = "https://matrix.coolneng.duckdns.org";
|
"m.homeserver"."base_url" = "https://matrix.coolneng.duckdns.org";
|
||||||
"server_name" = "coolneng.duckdns.org";
|
"m.identity_server"."base_url" = "https://vector.im";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"m.homeserver": {
|
"m.homeserver": {
|
||||||
"base_url": "https://matrix.coolneng.duckdns.org"
|
"base_url": "https://matrix.coolneng.duckdns.org"
|
||||||
},
|
|
||||||
"m.identity_server": {
|
|
||||||
"base_url": "https://vector.im"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue