This repository has no description
894 B
29 lines
1{
2 services.nginx = {
3 virtualHosts = {
4 "lassul.us" = {
5 locations."= /.well-known/matrix/server".extraConfig = ''
6 add_header Content-Type application/json;
7 return 200 '${builtins.toJSON {
8 "m.server" = "matrix.lassul.us:443";
9 }}';
10 '';
11 locations."= /.well-known/matrix/client".extraConfig = ''
12 add_header Content-Type application/json;
13 add_header Access-Control-Allow-Origin *;
14 return 200 '${builtins.toJSON {
15 "m.homeserver" = { "base_url" = "https://matrix.lassul.us"; };
16 "m.identity_server" = { "base_url" = "https://vector.im"; };
17 }}';
18 '';
19 };
20 "matrix.lassul.us" = {
21 forceSSL = true;
22 enableACME = true;
23 locations."/_matrix" = {
24 proxyPass = "http://neoprism.r:8008";
25 };
26 };
27 };
28 };
29}