chore(nix): add coturn secrets
This commit is contained in:
parent
d87c0e5ba1
commit
2efdbf87ac
|
@ -5,7 +5,12 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [../secrets/coturn.nix];
|
||||
age.secrets = {
|
||||
file = ../secrets/coturn.age;
|
||||
owner = "turnserver";
|
||||
group = "turnserver";
|
||||
mode = "0640";
|
||||
};
|
||||
|
||||
services = {
|
||||
coturn = {
|
||||
|
@ -20,6 +25,7 @@
|
|||
no-tcp-relay = true; # Disable TCP relay endpoints
|
||||
extraConfig = "\n cipher-list=\"HIGH\"\n no-loopback-peers\n no-multicast-peers\n ";
|
||||
secure-stun = true; # Require authentication of the STUN Binding request
|
||||
static-auth-secret-file = config.age.secrets.coturn.path;
|
||||
cert = "/var/lib/acme/turn.mcwhirter.io/fullchain.pem";
|
||||
pkey = "/var/lib/acme/turn.mcwhirter.io/key.pem";
|
||||
min-port = 49152; # Lower bound of UDP relay endpoints
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [../secrets/matrix.nix];
|
||||
|
||||
i18n = {
|
||||
extraLocaleSettings = {
|
||||
LC_COLLATE = "C.UTF-8"; # Ensure correct locale for postgres
|
||||
|
@ -66,7 +64,7 @@
|
|||
server_name = "mcwhirter.io"; # Server's public domain name
|
||||
tls_certificate_path = "/var/lib/acme/mcwhirter.io/fullchain.pem";
|
||||
tls_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem";
|
||||
turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6";
|
||||
turn_shared_secret = config.services.coturn.static-auth-secret;
|
||||
turn_uris = [
|
||||
"turn:turn.mcwhirter.io:5349?transport=udp"
|
||||
"turn:turn.mcwhirter.io:5350?transport=udp"
|
||||
|
|
35
secrets/coturn.age
Normal file
35
secrets/coturn.age
Normal file
|
@ -0,0 +1,35 @@
|
|||
-----BEGIN A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RXNkFteEFs
|
||||
UG43NArxMjjfXgYBXhon0SSpyPNqUQXp7jU5s7WKzj1OnjNgFYT4/9FxuUWVmf0A
|
||||
wJjib8jXUERlIahSbcBUyTo3kLLLBegQRIbwjZdYhAFekYUE/Lr6pvQAaDwDf1R0
|
||||
1LaHz9Zy
|
||||
-----END AGE ENCRYPTED FILE-----
|
|
@ -43,6 +43,7 @@ in {
|
|||
"hamish.age".publicKeys = ops ++ systems;
|
||||
"logan.age".publicKeys = ops ++ systems;
|
||||
"xander.age".publicKeys = ops ++ systems;
|
||||
"coturn.age".publicKeys = ops ++ systems;
|
||||
"nextcloud-dbpass.age".publicKeys = ops ++ systems;
|
||||
"nextcloud-adminpass.age".publicKeys = ops ++ systems;
|
||||
"tt-rss-dbpass.age".publicKeys = ops ++ systems;
|
||||
|
|
Loading…
Reference in a new issue