update server installer

This commit is contained in:
legop3
2025-11-14 21:48:54 -05:00
parent 930b48340d
commit 29255fd80e
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ if [[ ! -f "$MEDIAMTX_TEMPLATE" ]]; then
echo "mediaMTX template missing at $MEDIAMTX_TEMPLATE" >&2 echo "mediaMTX template missing at $MEDIAMTX_TEMPLATE" >&2
exit 1 exit 1
fi fi
echo " Installing mediaMTX config -> $MEDIAMTX_CONFIG"
rm -f "$MEDIAMTX_CONFIG"
install -m 0644 "$MEDIAMTX_TEMPLATE" "$MEDIAMTX_CONFIG" install -m 0644 "$MEDIAMTX_TEMPLATE" "$MEDIAMTX_CONFIG"
chown -R "$TARGET_USER":"$TARGET_USER" "$MEDIAMTX_CONF_DIR" chown -R "$TARGET_USER":"$TARGET_USER" "$MEDIAMTX_CONF_DIR"
+7
View File
@@ -1,3 +1,4 @@
# Managed by install_server.sh; edit server/mediamtx/mediamtx.yml and rerun the installer.
logLevel: info logLevel: info
api: yes api: yes
@@ -14,6 +15,8 @@ hls: no
webrtc: yes webrtc: yes
webrtcLocalUDPAddress: :8189 webrtcLocalUDPAddress: :8189
webrtcLocalTCPAddress: :8189 webrtcLocalTCPAddress: :8189
webrtcAdditionalHosts: []
webrtcICEServers2: []
srt: yes srt: yes
srtAddress: :9000 srtAddress: :9000
@@ -29,3 +32,7 @@ authHTTPExclude:
paths: paths:
"~^rover-(?P<id>[a-z0-9_-]+)$": "~^rover-(?P<id>[a-z0-9_-]+)$":
source: publisher source: publisher
sourceOnDemand: no
sourceProtocol: srt
readBufferCount: 512
overridePublisher: yes