Mediamtx + repertory instance
This commit is contained in:
parent
39420f524b
commit
a0b28b7a01
13 changed files with 470 additions and 2 deletions
69
charts/mediamtx/templates/configmap.yaml
Normal file
69
charts/mediamtx/templates/configmap.yaml
Normal 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: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue