matrix works
This commit is contained in:
parent
caba7f3420
commit
6820f4dbe1
1 changed files with 22 additions and 2 deletions
|
@ -3,14 +3,34 @@
|
|||
inherit (lib) mkIf;
|
||||
in mkIf conf.matrix.enable {
|
||||
services.nginx.virtualHosts = {
|
||||
"twoneis.site" = {
|
||||
serverName = "twoneis.site";
|
||||
useACMEHost = "twoneis.site";
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/.well-known/matrix/server" = {
|
||||
return = "200 '{\"m.server\": \"matrix.twoneis.site:443\"}'";
|
||||
};
|
||||
};
|
||||
};
|
||||
"matrix.twoneis.site" = {
|
||||
listen = [
|
||||
{
|
||||
addr = "95.111.239.134";
|
||||
port = 443;
|
||||
ssl = true;
|
||||
} {
|
||||
addr = "95.111.239.134";
|
||||
port = 8448;
|
||||
ssl = true;
|
||||
}
|
||||
];
|
||||
serverName = "matrix.twoneis.site";
|
||||
forceSSL = true;
|
||||
useACMEHost = "twoneis.site";
|
||||
locations = {
|
||||
"/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:6167";
|
||||
proxyPass = "http://localhost:6167";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue