Update well-known delegation settings for Matrix

This commit is contained in:
coolneng 2022-10-23 10:54:47 +02:00
parent dc1bb22d9d
commit 1dcd3fe1a4
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 4 deletions

View File

@ -40,12 +40,13 @@
"rewrite ^/gitea/(.*)$ https://git.coolneng.duckdns.org/$1 last;";
"/miniflux/".extraConfig =
"rewrite ^/miniflux/(.*)$ https://rss.coolneng.duckdns.org/$1 last;";
# Delegation for Matrix
"/.well-known/" = {
alias = "${../well-known}" + "/";
extraConfig = ''
${config.services.nginx.commonHttpConfig}
add_header Access-Control-Allow-Origin '*';
add_header Content-Type application/json;
default_type application/json;
'';
};
};
@ -110,9 +111,9 @@
enableACME = true;
forceSSL = true;
locations."/".root = pkgs.element-web.override {
conf.default_server_config."m.homeserver" = {
"base_url" = "https://matrix.coolneng.duckdns.org";
"server_name" = "coolneng.duckdns.org";
conf.default_server_config = {
"m.homeserver"."base_url" = "https://matrix.coolneng.duckdns.org";
"m.identity_server"."base_url" = "https://vector.im";
};
};
};