
enabled:
  enabled: false # 总开关，控制srs是否开启
  webrtc: true   # 开启默认的web rtc模式
  cluster: false # 是否开启集群模式，集群模式下 webrtc低时延功能不可用
  nginx: false
  hook: true     # 默认需要开启，鉴权模式
  ingress: false
  rtsp: false    # rtsp业务，默认不部署

deploy:
  name: helm-srs
  harbor:
    secret: harborsecret
    ingress:
      domain: ig-dev.uavcmlc.com
      port: 31500
      tls:
        enabled: true

apps:
  mysql:
    endpoint: helm-mysql:3306
    username: k8s_admin
    password: fP#UaH6qQ3)8
  srs:
    image:
      srs: "ossrs/srs:v4.0-b9"
      oss: "cmii-srs-oss-adaptor:v1.1-no-retention"
      op: "cmii-srs-operator:v1.2.0"
      nginx: "nginx:1.21.3"
    replicas:   # 集群模式才有用处
      origin: 1
      edge: 3
      nginx: 2
      rtc: 1    # 默认单实例，双实例无效！
      op: 1
    oss:
      endpoint: https://oss.dev.uavcmlc.com # 需要和minio部署的公网地址保持一致
      ak: ossuser
      sk: TgGiAHxF.r@Q6
      bucket: srs-hls
    ports:
      rtmp: 30935
      rtc: 30090
      api: 30985
      flv: 30080
      hls: 30088
    storage:
      pvc: glusterfs-middleware-srs-pvc
      size: 10Gi       # 大小待议
      class: emptyDir  # 不需要修改此部分
    service:   # service-headless 的名称
      headless:
        og: srs-og
        rtc: srs-rtc
  rtsp:                  # 对外部署大概率不使用，无需修改！
    ports:
      rtsp: 30554

cmlc-live-rtsp:
  apps:
    rtsp:
      enable: false  # 从这里控制开关！--废弃
      ports:
        rtsp: 30554
        rtp: 30556

  deploy:
    name: helm-srs
    harbor:
      secret: harborsecret
    k8s:
      affinity:
        node: common
      ingress:
        domain: ig-dev.uavcmlc.com


