summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/grapevine.nix
blob: 616626b45f2519d63d12107d71dfe170ed5d3180 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ ... }:

{
  services.grapevine = {
    enable = true;
    settings = {
      conduit_compat = true;
      server_name = "conduit.rory.gay";
      trusted_servers = [ "rory.gay" ];

      listen = [
        {
          type = "tcp";
          address = "127.0.0.1";
          port = 6167;
        }
      ];
      server_discovery.client.base_url = "https://conduit.rory.gay"; # This is required for some reason

      database = {
        backend = "rocksdb";
      };
      allow_registration = false;

      #log = "info";
      #log_format = "full";
      #log = "debug";
    };
  };
}