68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
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
|
|
runOnAvailable: >
|
|
wget -q -O- --post-data "path=$MTX_PATH&source_type=$MTX_SOURCE_TYPE"
|
|
"http://127.0.0.1:5000/hooks/ready?token=$HOOK_TOKEN"
|
|
runOnAvailableRestart: false
|
|
runOnUnavailable: >
|
|
wget -q -O- --post-data "path=$MTX_PATH"
|
|
"http://127.0.0.1:5000/hooks/not-ready?token=$HOOK_TOKEN"
|
|
|
|
paths:
|
|
all_others: {}
|