Refactor configs
This commit is contained in:
parent
84f7bc915f
commit
9710cae748
12 changed files with 125 additions and 128 deletions
|
|
@ -1,10 +1,24 @@
|
|||
{config, ...}: {
|
||||
services.matrix-conduit = {
|
||||
enable = true;
|
||||
settings.global = with config.constants; {
|
||||
address = wildcard;
|
||||
port = port.conduit;
|
||||
server_name = domain;
|
||||
services = with config.constants; {
|
||||
coturn = {
|
||||
enable = true;
|
||||
realm = localhost;
|
||||
static-auth-secret-file = config.sops.secrets.coturn.path;
|
||||
use-auth-secret = true;
|
||||
};
|
||||
matrix-conduit = {
|
||||
enable = true;
|
||||
settings.global = {
|
||||
address = wildcard;
|
||||
port = port.conduit;
|
||||
turn_secret = "TbbL8a4tsv6HkR9esjkPa4$fTKX";
|
||||
turn_uris = [
|
||||
"turn:${localhost}?transport=udp"
|
||||
"turn:${localhost}?transport=tcp"
|
||||
];
|
||||
server_name = domain;
|
||||
};
|
||||
};
|
||||
};
|
||||
sops.secrets.coturn = {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue