This repository has no description
806 B
35 lines
1{ config, pkgs, ... }:
2{
3 services.matrix-synapse = {
4 enable = true;
5 settings = {
6 server_name = "lassul.us";
7 # registration_shared_secret = "yolo";
8 database.name = "sqlite3";
9 turn_uris = [
10 "turn:turn.matrix.org?transport=udp"
11 "turn:turn.matrix.org?transport=tcp"
12 ];
13 listeners = [
14 {
15 port = 8008;
16 bind_addresses = [ "::1" ];
17 type = "http";
18 tls = false;
19 x_forwarded = true;
20 resources = [
21 {
22 names = [ "client" ];
23 compress = true;
24 }
25 {
26 names = [ "federation" ];
27 compress = false;
28 }
29 ];
30 }
31 ];
32 };
33 };
34 networking.firewall.allowedTCPPorts = [ 8008 ];
35}