global:
  loglevel: debug
  enablelogin: false
  # db:
  #   dbtype: mysql
  #   dsn: root:Monibuca#!4@tcp(sh-cynosdbmysql-grp-kxt43lv6.sql.tencentcdb.com:28520)/lkm7s_v5?parseTime=true
srt:
  listenaddr: :6000
  passphrase: foobarfoobar
gb28181:
  enable: false
  autoinvite: true
  sip:
    listenaddr:
          - udp::5060
  # pull:
  #   live/test: dump/34020000001320000001
  onsub:
    pull:
      .* : $0
mp4:
  publish:
    delayclosetimeout: 3s

  onsub:
    pull:
      ^vod/(.+)$: $1
cascadeserver:
  quic:
    listenaddr: :44944
# llhls:
#   onpub:
#     transform:
#       .* : 1s x 7
# flv:
#   pull:
#     live/test: https://livecb.alicdn.com/mediaplatform/afb241b3-408c-42dd-b665-04d22b64f9df.flv?auth_key=1734575216-0-0-c62721303ce751c8e5b2c95a2ec242a0&F=pc&source=34675810_null_live_detail&ali_flv_retain=2
# hls:
#   onpub:
#     transform:
#       .* : 5s x 3
#rtsp:
#  pull:
    # live/test: rtsp://admin:1qaz2wsx3EDC@giroro.tpddns.cn:1554/Streaming/Channels/101
#    live/test: rtsp://admin:1qaz2wsx3EDC@localhost:8554/live/test

snap:
  enable: false
  snapsavemanual: false  # 手动截图是否保存文件
  snapwatermark:
    text: "Monibuca$T{2006-01-02 15:04:05}"
    fontpath: "/System/Library/Fonts/STHeiti Light.ttc" # mac字体路径
    # fontpath: "/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc" # linux字体路径 思源黑体
    # fontpath: "C:/Windows/Fonts/msyh.ttf" # windows字体路径 微软雅黑
    fontsize: 36
    fontcolor: "rgba(255,165,0,1)"
    offsetx: 10
    offsety: 10  
  snapmode: 1
  snaptimeinterval: 1s
  snapsavepath: "./snaps"
  snapiframeinterval: 3
  snapquerytimedelta: 3  # 查询截图时允许的最大时间差（秒）
  filter: "^live/.*"
  onpub:
    transform:
      .* : $0

crypto:
  enable: false
  isstatic: false
  algo: aes_ctr # 加密算法 支持 aes_ctr xor_c
  encryptlen: 1024
  secret:
    key: your key
    iv: your iv
  onpub:
    transform:
      .* : $0