Files
BackOne/addons/updater/migrations/004_webrtc_ice_defaults.sh
T
2026-07-02 09:12:57 +07:00

15 lines
457 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
BACKONE_HOME="${BACKONE_HOME:-/var/lib/backone}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if [ -x "${SCRIPT_DIR}/merge-local-conf.sh" ]; then
BACKONE_HOME="$BACKONE_HOME" bash "${SCRIPT_DIR}/merge-local-conf.sh" '{
"settings": {
"icePreferOverlay": true,
"iceServers": [{"urls": "stun:stun.l.google.com:19302"}],
"iceFallbackTimeoutMs": 8000,
"webhubPort": 9994
}
}'
fi