Set up Matrix and Element

This commit is contained in:
2020-12-28 18:42:26 +01:00
parent 33523cc4c6
commit 0011955907
5 changed files with 83 additions and 3 deletions

View File

@@ -59,6 +59,7 @@
extraConfig =
"rewrite ^/miniflux/(.*)$ https://rss.coolneng.duckdns.org/$1 last;";
};
locations."/.well-known/".alias = "${../well-known}" + "/";
};
"radicale.coolneng.duckdns.org" = {
enableACME = true;
@@ -86,6 +87,37 @@
forceSSL = true;
locations."/" = { proxyPass = "http://localhost:8080/"; };
};
"matrix.coolneng.duckdns.org" = {
enableACME = true;
forceSSL = true;
listen = [
{
addr = "0.0.0.0";
port = 8448;
ssl = true;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations."/" = { proxyPass = "http://localhost:8008/"; };
};
"element.coolneng.duckdns.org" = {
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";
};
};
};
};
};
};
};
@@ -100,6 +132,8 @@
"sync.coolneng.duckdns.org"
"git.coolneng.duckdns.org"
"rss.coolneng.duckdns.org"
"matrix.coolneng.duckdns.org"
"element.coolneng.duckdns.org"
];
};
};
@@ -133,9 +167,6 @@
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
identMap = ''
gitea-users gitea gitea
'';
};
# PostgreSQL daily backups
@@ -162,5 +193,7 @@
"syncthing.service"
"miniflux.service"
"radicale.service"
"matrix-synapse.service"
"element.service"
];
}