increase default token ttl to 6h
This commit is contained in:
+2
-2
@@ -136,9 +136,9 @@ func Build() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// builds docker image for LiveKit server
|
// builds docker image for LiveKit server
|
||||||
func BuildDocker() error {
|
func Docker() error {
|
||||||
mg.Deps(Proto, generateWire)
|
mg.Deps(Proto, generateWire)
|
||||||
cmd := exec.Command("docker", "build", ".", "-t", "livekit/livekit:v"+version.Version)
|
cmd := exec.Command("docker", "build", ".", "-t", "livekit/livekit-server:v"+version.Version)
|
||||||
connectStd(cmd)
|
connectStd(cmd)
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultValidDuration = 10 * time.Minute
|
defaultValidDuration = 6 * time.Hour
|
||||||
)
|
)
|
||||||
|
|
||||||
// Signer that produces token signed with API key and secret
|
// Signer that produces token signed with API key and secret
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: assign room to a node if for some reasons node isn't available
|
||||||
|
|
||||||
// upgrade only once the basics are good to go
|
// upgrade only once the basics are good to go
|
||||||
conn, err := s.upgrader.Upgrade(w, r, nil)
|
conn, err := s.upgrader.Upgrade(w, r, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user