turn server tls (#38)
* tls * acm * use cert/key files * turn -> turns * turn cert config * updates * move panic * tidy * final updates
This commit is contained in:
@@ -41,8 +41,7 @@ func printPorts(c *cli.Context) error {
|
||||
|
||||
if conf.TURN.Enabled {
|
||||
udpPorts = append(udpPorts, fmt.Sprintf("%d-%d", conf.TURN.PortRangeStart, conf.TURN.PortRangeEnd))
|
||||
udpPorts = append(udpPorts, strconv.Itoa(conf.TURN.TCPPort))
|
||||
tcpPorts = append(tcpPorts, strconv.Itoa(conf.TURN.TCPPort))
|
||||
tcpPorts = append(tcpPorts, strconv.Itoa(conf.TURN.TLSPort))
|
||||
}
|
||||
|
||||
fmt.Println("TCP Ports")
|
||||
|
||||
@@ -75,6 +75,16 @@ func main() {
|
||||
Name: "dev",
|
||||
Usage: "sets log-level to debug, and console formatter",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "turn-cert",
|
||||
Usage: "tls cert file for TURN server",
|
||||
EnvVars: []string{"LIVEKIT_TURN_CERT"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "turn-key",
|
||||
Usage: "tls key file for TURN server",
|
||||
EnvVars: []string{"LIVEKIT_TURN_KEY"},
|
||||
},
|
||||
},
|
||||
Action: startServer,
|
||||
Commands: []*cli.Command{
|
||||
|
||||
Reference in New Issue
Block a user