648540858
2024-03-20 5e3073005d286ba7fe9dfced7f4a7a26e5452ebb
src/main/resources/all-application.yml
@@ -34,18 +34,42 @@
        poolMaxWait: 5
    # [必选] jdbc数据库配置
    datasource:
        type: com.zaxxer.hikari.HikariDataSource
        driver-class-name: com.mysql.cj.jdbc.Driver
        url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true
        username: root
        password: root123
        hikari:
            connection-timeout: 20000             # 是客户端等待连接池连接的最大毫秒数
            initialSize: 10                       # 连接池初始化连接数
            maximum-pool-size: 200                # 连接池最大连接数
            minimum-idle: 5                       # 连接池最小空闲连接数
            idle-timeout: 300000                  # 允许连接在连接池中空闲的最长时间(以毫秒为单位)
            max-lifetime: 1200000                 # 是池中连接关闭后的最长生命周期(以毫秒为单位)
        # kingbase配置
        #        type: com.zaxxer.hikari.HikariDataSource
        #        driver-class-name: com.kingbase8.Driver
        #        url: jdbc:kingbase8://192.168.1.55:54321/wvp?useUnicode=true&characterEncoding=utf8
        #        username: system
        #        password: system
        # postgresql配置
        #    type: com.zaxxer.hikari.HikariDataSource
        #    driver-class-name: org.postgresql.Driver
        #    url: jdbc:postgresql://192.168.1.242:3306/242wvp
        #    username: root
        #    password: SYceshizu1234
        # mysql配置
        dynamic:
            primary: master
            datasource:
                master:
                    type: com.zaxxer.hikari.HikariDataSource
                    driver-class-name: com.mysql.cj.jdbc.Driver
                    url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true
                    username: root
                    password: root123
                    hikari:
                        connection-timeout: 20000             # 是客户端等待连接池连接的最大毫秒数
                        initialSize: 50                       # 连接池初始化连接数
                        maximum-pool-size: 200                # 连接池最大连接数
                        minimum-idle: 10                       # 连接池最小空闲连接数
                        idle-timeout: 300000                  # 允许连接在连接池中空闲的最长时间(以毫秒为单位)
                        max-lifetime: 1200000                 # 是池中连接关闭后的最长生命周期(以毫秒为单位)
                share:
                    type: com.zaxxer.hikari.HikariDataSource
                    driver-class-name: com.mysql.cj.jdbc.Driver
                    url: jdbc:mysql://127.0.0.1:3306/wvp269_1?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
                    username: root
                    password: 12345678
# 修改分页插件为 postgresql, 数据库类型为mysql不需要
@@ -139,20 +163,24 @@
    auto-config: true
    # [可选] zlm服务器的hook.admin_params=secret
    secret: 035c73f7-bb6b-4889-a715-d9eb2d1925cc
    # 录像路径
    record-path: ./www/record
    # 录像保存时长
    record-day: 7
    # 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分, 点播超时建议使用多端口测试
    rtp:
        # [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
        enable: true
        # [可选] 在此范围内选择端口用于媒体流传输, 必须提前在zlm上配置该属性,不然自动配置此属性可能不成功
        port-range: 30000,30500 # 端口范围
        # [可选] 国标级联在此范围内选择端口发送媒体流
        send-port-range: 30000,30500 # 端口范围
        # [可选] 国标级联在此范围内选择端口发送媒体流,请不要与收流端口范围重合
        send-port-range: 50502,50506 # 端口范围
    # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
    record-assist-port: 0
# [可选] 日志配置, 一般不需要改
# [可选] 日志配置, 如果不需要在jar外修改日志内容那么可以不配置此项
logging:
    config: classpath:logback-spring-local.xml
    config: classpath:logback-spring.xml
# [根据业务需求配置]
user-settings:
@@ -178,18 +206,15 @@
    # 国标是否录制
    record-sip: true
    # 是否将日志存储进数据库
    logInDatebase: true
    logInDatabase: true
    # 使用推流状态作为推流通道状态
    use-pushing-as-status: true
    # 使用来源请求ip作为streamIp,当且仅当你只有zlm节点它与wvp在一起的情况下开启
    use-source-ip-as-stream-ip: true
    use-source-ip-as-stream-ip: false
    # 国标点播 按需拉流, true:有人观看拉流,无人观看释放, false:拉起后不自动释放
    stream-on-demand: true
    # 推流鉴权, 默认开启
    push-authority: true
    # 国标级联发流严格模式,严格模式会使用与sdp信息中一致的端口发流,端口共享media.rtp.port-range,这会损失一些性能,
    # 非严格模式使用随机端口发流,性能更好, 默认关闭
    gb-send-stream-strict: false
    # 设备上线时是否自动同步通道
    sync-channel-on-device-online: false
    # 国标级联语音喊话发流模式 * UDP:udp传输 TCP-ACTIVE:tcp主动模式 TCP-PASSIVE:tcp被动模式
@@ -216,7 +241,7 @@
    register-again-after-time: 60
    # 国标续订方式,true为续订,每次注册在同一个会话里,false为重新注册,每次使用新的会话
    register-keep-int-dialog: false
    # 跨域配置,配置你访问前端页面的地址即可, 可以配置多个
    # 跨域配置,不配置此项则允许所有跨域请求,配置后则只允许配置的页面的地址请求, 可以配置多个
    allowed-origins:
        - http://localhost:8008
        - http://192.168.1.3:8008