mirror of
https://github.com/livekit/livekit.git
synced 2026-05-30 13:54:09 +00:00
increase default token ttl to 6h
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultValidDuration = 10 * time.Minute
|
||||
defaultValidDuration = 6 * time.Hour
|
||||
)
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// TODO: assign room to a node if for some reasons node isn't available
|
||||
|
||||
// upgrade only once the basics are good to go
|
||||
conn, err := s.upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user