wvp-application.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. spring:
  2. # [可选]上传文件大小限制
  3. servlet:
  4. multipart:
  5. max-file-size: 10MB
  6. max-request-size: 100MB
  7. # REDIS数据库配置
  8. redis:
  9. # [可选] 超时时间
  10. timeout: 10000
  11. # 以下为单机配置
  12. # [必须修改] Redis服务器IP, REDIS安装在本机的,使用127.0.0.1
  13. host: 127.0.0.1
  14. # # [必须修改] 端口号
  15. port: 6379
  16. # [可选] 数据库 DB
  17. database: 1
  18. # [可选] 访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
  19. password: adminadmin123.
  20. # 以下为集群配置
  21. # cluster:
  22. # nodes: 192.168.1.66:9001,192.168.1.66:9002,192.168.1.66:9003,192.168.1.66:9004,192.168.1.66:9005,192.168.1.66:9006
  23. # password: adminadmin123.
  24. # [可选] jdbc数据库配置, 项目使用sqlite作为数据库,一般不需要配置
  25. # mysql数据源
  26. datasource:
  27. # kingbase配置
  28. # type: com.zaxxer.hikari.HikariDataSource
  29. # driver-class-name: com.kingbase8.Driver
  30. # url: jdbc:kingbase8://192.168.1.55:54321/wvp?useUnicode=true&characterEncoding=utf8
  31. # username: system
  32. # password: system
  33. # postgresql配置
  34. # type: com.zaxxer.hikari.HikariDataSource
  35. # driver-class-name: org.postgresql.Driver
  36. # url: jdbc:postgresql://192.168.1.242:3306/242wvp
  37. # username: root
  38. # password: SYceshizu1234
  39. # mysql配置
  40. type: com.zaxxer.hikari.HikariDataSource
  41. driver-class-name: com.mysql.cj.jdbc.Driver
  42. url: jdbc:mysql://192.168.1.242:3306/242wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
  43. username: root
  44. password: SYceshizu1234
  45. # kingbase 和 postgresql需要开启这个配置
  46. #pagehelper:
  47. # helper-dialect: postgresql
  48. #[可选] WVP监听的HTTP端口, 网页和接口调用都是这个端口
  49. server:
  50. port: 18080
  51. # 作为28181服务器的配置
  52. sip:
  53. # [必须修改] 本机的IP
  54. ip: 192.168.1.3
  55. # [可选] 28181服务监听的端口
  56. port: 15060
  57. # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007)
  58. # 后两位为行业编码,定义参照附录D.3
  59. # 3701020049标识山东济南历下区 信息行业接入
  60. # [可选]
  61. domain: 3402000001
  62. # [可选]
  63. id: 34020000013000000001
  64. # [可选] 默认设备认证密码,后续扩展使用设备单独密码, 移除密码将不进行校验
  65. password: 12345678
  66. #zlm 默认服务器配置
  67. media:
  68. # [必须修改] zlm服务器唯一id,用于触发hook时区别是哪台服务器,general.mediaServerId
  69. id: GQ3TF8yT83wh5Wvz
  70. # [必须修改] zlm服务器的内网IP
  71. ip: 192.168.1.3
  72. # [必须修改] zlm服务器的http.port
  73. http-port: 6080
  74. # [可选] zlm服务器的hook.admin_params=secret
  75. secret: 034523TF8yT83wh5Wvz73f7
  76. # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
  77. rtp:
  78. # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
  79. enable: true
  80. # [可选] 在此范围内选择端口用于媒体流传输,
  81. port-range: 30000,30500 # 端口范围
  82. # [可选] 国标级联在此范围内选择端口发送媒体流,请不要与收流端口范围重合
  83. send-port-range: 50502,50506 # 端口范围
  84. # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
  85. record-assist-port: 18089
  86. # 录像路径
  87. record-path: ./www/record
  88. # 录像保存时长
  89. record-day: 7
  90. # [可选] 日志配置, 一般不需要改
  91. logging:
  92. config: classpath:logback-spring-local.xml
  93. # [根据业务需求配置]
  94. user-settings:
  95. server-id: 741266
  96. auto-apply-play: true
  97. interface-authentication: true
  98. interface-authentication-excludes:
  99. - /api/v1/**
  100. - /api/media/stream_info_by_app_and_stream
  101. - /api/v1/control/ptz
  102. - /api/cloud/record/*/**
  103. # 推流直播是否录制
  104. record-push-live: true
  105. # 国标是否录制
  106. record-sip: false
  107. # 使用推流状态作为推流通道状态
  108. use-pushing-as-status: false
  109. # 设备上线时是否自动同步通道
  110. sync-channel-on-device-online: false
  111. # 消息通道功能-缺少国标ID是否给所有上级发送消息
  112. send-to-platforms-when-id-lost: false