Add listenIp for turn
This commit is contained in:
1 parent
6bb9ceefb8
commit
cccfcb255d
3 files changed
+34
-20
No files matched your search
@@ -12,19 +12,27 @@ in
|
||||
"turn/public-ip" = { };
|
||||
};
|
||||
|
||||
sops.templates."turnserver.conf".content = ''
|
||||
listening-port=${toString cfg.listenPort}
|
||||
fingerprint
|
||||
lt-cred-mech
|
||||
realm=${realm}
|
||||
user=turn:${config.sops.placeholder."turn/password"}
|
||||
min-port=${toString cfg.minPort}
|
||||
max-port=${toString cfg.maxPort}
|
||||
external-ip=${config.sops.placeholder."turn/public-ip"}
|
||||
log-file=stdout
|
||||
no-cli
|
||||
no-tls
|
||||
no-dtls
|
||||
'';
|
||||
sops.templates."turnserver.conf" = {
|
||||
owner = "nobody";
|
||||
group = "nogroup";
|
||||
mode = "0400";
|
||||
restartUnits = [ "docker-turn-server.service" ];
|
||||
content = ''
|
||||
listening-port=${toString cfg.listenPort}
|
||||
listening-ip=${cfg.listenIP}
|
||||
fingerprint
|
||||
lt-cred-mech
|
||||
realm=${realm}
|
||||
user=turn:${config.sops.placeholder."turn/password"}
|
||||
min-port=${toString cfg.minPort}
|
||||
max-port=${toString cfg.maxPort}
|
||||
relay-ip=${cfg.listenIP}
|
||||
external-ip=${config.sops.placeholder."turn/public-ip"}/${cfg.listenIP}
|
||||
log-file=stdout
|
||||
no-cli
|
||||
no-tls
|
||||
no-dtls
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user