wvp-application.yml 4.7 KB

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