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