规范配置文件,添加接口鉴权的例外接口配置
This commit is contained in:
@@ -13,10 +13,15 @@ spring:
|
||||
timeout: 10000
|
||||
# [可选] jdbc数据库配置, 项目使用sqlite作为数据库,一般不需要配置
|
||||
datasource:
|
||||
# 使用mysql 打开23-28行注释, 删除29-36行
|
||||
# name: wvp
|
||||
# url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
|
||||
# username:
|
||||
# password:
|
||||
# type: com.alibaba.druid.pool.DruidDataSource
|
||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
name: eiot
|
||||
url: jdbc:sqlite::resource:wvp.sqlite
|
||||
# 打包为jar运行时把wvp.sqlite发到jar同级文件夹,同时url改为:
|
||||
# url: jdbc:sqlite:wvp.sqlite
|
||||
username:
|
||||
password:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
@@ -49,7 +54,7 @@ media:
|
||||
# [必须修改] zlm服务器的内网IP
|
||||
ip: 192.168.0.100
|
||||
# [必须修改] zlm服务器的http.port
|
||||
httpPort: 80
|
||||
http-port: 80
|
||||
# [可选] zlm服务器的hook.admin_params=secret
|
||||
secret: 035c73f7-bb6b-4889-a715-d9eb2d1925cc
|
||||
# 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
|
||||
@@ -57,10 +62,9 @@ media:
|
||||
# [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
|
||||
enable: true
|
||||
# [可选] 在此范围内选择端口用于媒体流传输,
|
||||
portRange: 30000,30500 # 端口范围
|
||||
port-range: 30000,30500 # 端口范围
|
||||
# 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
|
||||
recordAssistPort: 0
|
||||
|
||||
record-assist-port: 0
|
||||
|
||||
# [可选] 日志配置, 一般不需要改
|
||||
logging:
|
||||
@@ -74,16 +78,12 @@ logging:
|
||||
genersoft:
|
||||
iot: info
|
||||
# [根据业务需求配置]
|
||||
userSettings:
|
||||
# [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true
|
||||
autoApplyPlay: false
|
||||
# 是否开启接口鉴权
|
||||
interfaceAuthentication: true
|
||||
user-settings:
|
||||
# 推流直播是否录制
|
||||
recordPushLive: true
|
||||
record-push-live: true
|
||||
|
||||
# 在线文档: swagger-ui(生产环境建议关闭)
|
||||
springfox:
|
||||
documentation:
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user