Mediamtx + repertory instance

This commit is contained in:
Ian Keane 2026-09-14 13:37:00 -04:00
parent 39420f524b
commit a0b28b7a01
13 changed files with 470 additions and 2 deletions

View file

@ -0,0 +1,69 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mediamtx-config
namespace: mediamtx
data:
mediamtx.yml: |
logLevel: info
authMethod: internal
authInternalUsers:
- user: {{ .Values.publishUser }}
pass: __PUBLISH_PASSWORD__
ips: []
permissions:
- action: publish
path: ""
- action: read
path: ""
- action: playback
path: ""
- user: any
pass: ""
ips: []
permissions:
- action: read
path: ""
- action: playback
path: ""
rtmp: true
rtmpAddress: :{{ .Values.mediamtx.rtmpPort }}
rtmpEncryption: "no"
hls: true
hlsAddress: :8888
hlsVariant: lowLatency
hlsAllowOrigin: "*"
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 200ms
webrtc: true
webrtcAddress: :{{ .Values.mediamtx.webrtcHttpPort }}
webrtcEncryption: false
webrtcAllowOrigin: "*"
webrtcLocalUDPAddress: :{{ .Values.mediamtx.webrtcUdpPort }}
webrtcAdditionalHosts:
- {{ .Values.publicIp }}
webrtcICEServers2:
- url: stun:stun.l.google.com:19302
- url: stun:stun1.l.google.com:19302
rtsp: false
srt: false
pathDefaults:
source: publisher
runOnReady: >
wget -q -O- --post-data "path=$MTX_PATH&source_type=$MTX_SOURCE_TYPE"
"http://localhost:5000/hooks/ready?token=$HOOK_TOKEN"
runOnReadyRestart: false
runOnNotReady: >
wget -q -O- --post-data "path=$MTX_PATH"
"http://localhost:5000/hooks/not-ready?token=$HOOK_TOKEN"
runOnNotReadyRestart: false
paths:
all_others: {}