Add Matrix Conduit service configuration to Nix setup
This commit is contained in:
parent
139345f84e
commit
d234901432
2 changed files with 42 additions and 1 deletions
|
|
@ -52,13 +52,41 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
## Add Conduit for Matrix
|
||||||
|
|
||||||
|
# See https://search.nixos.org/options?channel=unstable&query=services.matrix-conduit.
|
||||||
|
# and https://docs.conduit.rs/configuration.html
|
||||||
|
services.matrix-conduit = {
|
||||||
|
enable = true;
|
||||||
|
settings.global = {
|
||||||
|
allow_registration = true;
|
||||||
|
# You will need this token when creating your first account.
|
||||||
|
registration_token = "testtoken1234";
|
||||||
|
# server_name = yourDomainName;
|
||||||
|
port = 12244;
|
||||||
|
# Bind to all interfaces so Traefik on the network can reach Conduit.
|
||||||
|
address = "0.0.0.0";
|
||||||
|
database_backend = "rocksdb";
|
||||||
|
server_name = "https://lgbtq.prg-radio.org";
|
||||||
|
|
||||||
|
# See https://docs.conduit.rs/turn.html, and https://github.com/element-hq/synapse/blob/develop/docs/turn-howto.md for more details
|
||||||
|
# turn_uris = [
|
||||||
|
# "turn:your.turn.url?transport=udp"
|
||||||
|
# "turn:your.turn.url?transport=tcp"
|
||||||
|
# ];
|
||||||
|
# turn_secret = "your secret";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
12244
|
||||||
];
|
];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
12244
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,13 @@
|
||||||
entryPoints = ["websecure"];
|
entryPoints = ["websecure"];
|
||||||
tls = {};
|
tls = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
matrix = {
|
||||||
|
rule = "Host(`lgbtq.prg-radio.org`)";
|
||||||
|
service = "matrix";
|
||||||
|
entryPoints = ["websecure"];
|
||||||
|
tls = {};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
http.services = {
|
http.services = {
|
||||||
forgejo.loadBalancer = {
|
forgejo.loadBalancer = {
|
||||||
|
|
@ -133,6 +140,12 @@
|
||||||
{url = "http://10.1.1.249:8087";}
|
{url = "http://10.1.1.249:8087";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
matrix.loadBalancer = {
|
||||||
|
servers = [
|
||||||
|
{ url = "http://10.1.1.248:12244"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TCP routing for TeamSpeak
|
# TCP routing for TeamSpeak
|
||||||
|
|
@ -205,4 +218,4 @@
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue