LiveGBS国标GB/T28181流媒体服务如何设置TOKEN有效时间接口调用token的有效时长

187 阅读1分钟

同时兼容内网收流外网收流多网段设备收流

1、搭建GB28181流媒体平台

支持 Windows|Linux 64 位系统环境,支持内网、私有云部署

2、配置token_timeout

livecms.ini -> [http] -> token_timeout=86400

[http] 
; token的有效时间 单位秒
token_timeout=86400

3、配置token_key

livecms.ini -> [http] -> token_key=随机字符串

[http] 
; token的加密字符串,默认每次启动服务随机
token_key=test

4、如何配置一直有效的token

  • 1、配置token_timeout , 设置一个较长时间
  • 2、配置token_key, 设置一个固定加密key

5、保存配置后重启LiveCMS服务后生效