Files
2026-03-23 00:37:22 +01:00

52 lines
1.2 KiB
YAML

logLevel: info
logDestinations: [stdout]
readTimeout: 10s
writeTimeout: 10s
writeQueueSize: 1024
udpMaxPayloadSize: 1452
api: true
apiAddress: :9997
metrics: true
metricsAddress: :9998
rtmp: true
rtmpAddress: :1935
hls: true
hlsAddress: :8888
hlsAlwaysRemux: true
hlsVariant: lowLatency
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 250ms
hlsMuxerCloseAfter: 30s
webrtc: true
webrtcAddress: :8889
webrtcLocalUDPAddress: :8189
webrtcIPsFromInterfaces: true
# Backend bestemmer om publish/read må accepteres.
authMethod: http
authHTTPAddress: http://backend:5000/api/mediamtx/auth
# API/metrics skal backend kunne nå uden auth-loop.
authHTTPExclude:
- action: api
- action: metrics
- action: pprof
pathDefaults:
source: publisher
overridePublisher: true
# Hooks tilbage til backend
runOnReady: >-
sh -c 'wget -qO- --post-data "path=$MTX_PATH&source_type=$MTX_SOURCE_TYPE&source_id=$MTX_SOURCE_ID&query=$MTX_QUERY" http://backend:5000/api/mediamtx/hook/ready >/dev/null 2>&1'
runOnNotReady: >-
sh -c 'wget -qO- --post-data "path=$MTX_PATH&source_type=$MTX_SOURCE_TYPE&source_id=$MTX_SOURCE_ID&query=$MTX_QUERY" http://backend:5000/api/mediamtx/hook/not-ready >/dev/null 2>&1'
paths:
all_others: