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:
David Colburn
2021-07-01 17:00:49 -05:00
committed by GitHub
parent 4e6eafa63c
commit e543aaa98a
7 changed files with 74 additions and 57 deletions
+1 -2
View File
@@ -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")
+10
View File
@@ -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{