|  |  |  | 
|---|
|  |  |  | spring: | 
|---|
|  |  |  | application: | 
|---|
|  |  |  | name: iot-vmp-vmanager | 
|---|
|  |  |  | # 影子数据存储方式,支持redis、jdbc,暂不支持mysql | 
|---|
|  |  |  | database: redis | 
|---|
|  |  |  | # 通信方式,支持kafka、http | 
|---|
|  |  |  | communicate: http | 
|---|
|  |  |  | redis: | 
|---|
|  |  |  | # Redis服务器IP | 
|---|
|  |  |  | host: 127.0.0.1 | 
|---|
|  |  |  | #端口号 | 
|---|
|  |  |  | port: 6379 | 
|---|
|  |  |  | database: 6 | 
|---|
|  |  |  | #访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接 | 
|---|
|  |  |  | password: | 
|---|
|  |  |  | #超时时间 | 
|---|
|  |  |  | timeout: 10000 | 
|---|
|  |  |  | datasource: | 
|---|
|  |  |  | name: eiot | 
|---|
|  |  |  | url: jdbc:mysql://127.0.0.1:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true | 
|---|
|  |  |  | username: | 
|---|
|  |  |  | password: | 
|---|
|  |  |  | type: com.alibaba.druid.pool.DruidDataSource | 
|---|
|  |  |  | driver-class-name: com.mysql.jdbc.Driver | 
|---|
|  |  |  | server: | 
|---|
|  |  |  | port: 18080 | 
|---|
|  |  |  | sip: | 
|---|
|  |  |  | ip: 192.168.1.44 | 
|---|
|  |  |  | port: 5060 | 
|---|
|  |  |  | # 根据国标6.1.2中规定,domain宜采用ID统一编码的前十位编码。国标附录D中定义前8位为中心编码(由省级、市级、区级、基层编号组成,参照GB/T 2260-2007) | 
|---|
|  |  |  | # 后两位为行业编码,定义参照附录D.3 | 
|---|
|  |  |  | # 3701020049标识山东济南历下区 信息行业接入 | 
|---|
|  |  |  | domain: 3402000000 | 
|---|
|  |  |  | id: 34020000002000000001 | 
|---|
|  |  |  | # 默认设备认证密码,后续扩展使用设备单独密码 | 
|---|
|  |  |  | password: 12345678 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | auth: #32位小写md5加密(默认密码为admin) | 
|---|
|  |  |  | username: admin | 
|---|
|  |  |  | password: 21232f297a57a5a743894a0e4a801fc3 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | media: #zlm服务器的ip与http端口, 重点: 这是http端口 | 
|---|
|  |  |  | ip: 192.168.1.44 | 
|---|
|  |  |  | wanIp: | 
|---|
|  |  |  | port: 80 | 
|---|
|  |  |  | secret: 035c73f7-bb6b-4889-a715-d9eb2d1925cc | 
|---|
|  |  |  | streamNoneReaderDelayMS:  1800000  # 无人观看多久自动关闭流 | 
|---|
|  |  |  | closeWaitRTPInfo: false # 强制关闭等待收到流编码信息后在返回, 设为true可以快速打开播放窗口, 设为false保证返回后流就可以播放 | 
|---|
|  |  |  | rtp: # 启用udp多端口模式 | 
|---|
|  |  |  | enable: true | 
|---|
|  |  |  | udpPortRange: 30000,30500 # 端口范围 | 
|---|
|  |  |  | logging: | 
|---|
|  |  |  | file: | 
|---|
|  |  |  | name: logs/wvp.log | 
|---|
|  |  |  | max-history: 30 | 
|---|
|  |  |  | max-size: 10MB | 
|---|
|  |  |  | total-size-cap: 300MB | 
|---|
|  |  |  | level: | 
|---|
|  |  |  | com: | 
|---|
|  |  |  | genersoft: | 
|---|
|  |  |  | iot: debug | 
|---|
|  |  |  | application: | 
|---|
|  |  |  | name: wvp | 
|---|
|  |  |  | profiles: | 
|---|
|  |  |  | active: local | 
|---|
|  |  |  | # flayway相关配置 | 
|---|
|  |  |  | flyway: | 
|---|
|  |  |  | enabled: true   #是否启用flyway(默认true) | 
|---|
|  |  |  | locations: classpath:db/migration   #这个路径指的是fly版本控制的sql语句存放的路径,可以多个,可以给每个环境使用不同位置,比如classpath:db/migration,classpath:test/db/migration | 
|---|
|  |  |  | baseline-on-migrate: true   #开启自动创建flyway元数据表标识 默认: false | 
|---|
|  |  |  | # 与 baseline-on-migrate: true 搭配使用,将当前数据库初始版本设置为0 | 
|---|
|  |  |  | baseline-version: 0 | 
|---|
|  |  |  | clean-disabled: true    #禁止flyway执行清理 | 
|---|
|  |  |  | # 假如已经执行了版本1和版本3,如果增加了一个版本2,下面这个选项将会允许执行版本2的脚本 | 
|---|
|  |  |  | out-of-order: true | 
|---|
|  |  |  | table: flyway_schema_history_${spring.application.name}  #用于记录所有的版本变化记录 | 
|---|