Files
nginx-stream-server/mediamtx.yml
jbergner 949f07d420
All checks were successful
release-tag / release-image (push) Successful in 1m58s
fix-11 - viewer-count
2025-09-21 22:13:20 +02:00

64 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# --- Logging ---
logLevel: info
# --- Control API (geschützt) ---
api: yes
apiAddress: :9997
apiEncryption: no
apiAllowOrigin: "*"
# --- Metrics (optional) ---
metrics: yes
metricsAddress: :9998
metricsEncryption: no
metricsAllowOrigin: "*"
# --- RTMP (Ingest) ---
rtmp: yes
rtmpAddress: :1935
rtmpEncryption: "no"
# --- HLS (Playback) ---
hls: yes
hlsAddress: :8888
hlsEncryption: no
hlsVariant: lowLatency # <— statt mpegts
hlsSegmentDuration: 1s # 12s (Segment = GOP-Vielfaches, s.u.)
hlsPartDuration: 200ms # 200350ms
hlsSegmentCount: 7 # hat keinen Einfluss auf Latenz, aber genügt
hlsAlwaysRemux: yes # schneller Join / weniger Anlaufzeit
# Nicht benötigt
rtsp: no
webrtc: no
srt: no
pprof: no
playback: no
# --- AUTH: Intern (API + Publish) ---
# authMethod: internal
authInternalUsers:
# Admin für API (und optional metrics)
- user: sha256:jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=
pass: sha256:jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=
permissions:
- action: api
- action: metrics
# Publisher für stream1
- user: sha256:CCgj5KGMqEZgxOc5o4drwj9BVDg46eOLxuPMHhSRKAc=
pass: sha256:XohImNooBHFR0OVvjcYpJ3NgPQ1qq73WKhHvch0VQtg=
permissions:
- action: publish
path: stream1
# NEU: jeder darf lesen (HLS/RTMP/RTSP)
- user: any
permissions:
- action: read
path:
# --- Paths ---
paths:
# keine Legacy-Creds mehr hier!
all: {}