diff --git a/squashkiwi-streaming/backup.sh b/squashkiwi-streaming/backup.sh index c37a3ee..f5dd984 100755 --- a/squashkiwi-streaming/backup.sh +++ b/squashkiwi-streaming/backup.sh @@ -8,4 +8,4 @@ _check_required_env_vars "PROJECT_NAME" "LOCAL_DATA_FOLDER" "BACKUP_FILE" "TEMP_ # shellcheck disable=SC2046 backup_items $(get_squashkiwi_streaming_paths) || _die "Failed to create backup" -echo "Backup created successfully" +echo "Backup created successfully (recordings excluded)" diff --git a/squashkiwi-streaming/config/docker-compose.yml b/squashkiwi-streaming/config/docker-compose.yml index b38f839..13a1da4 100644 --- a/squashkiwi-streaming/config/docker-compose.yml +++ b/squashkiwi-streaming/config/docker-compose.yml @@ -10,8 +10,8 @@ services: - ${RECORDINGS_FOLDER}:/recordings environment: - MTX_PROTOCOLS=tcp - - MTX_PATHS_COURT_MAIN_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0 - - MTX_PATHS_COURT_SUB_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1 + - MTX_PATHS_COURT_MAIN_SOURCE=${MTX_PATHS_COURT_MAIN_SOURCE} + - MTX_PATHS_COURT_SUB_SOURCE=${MTX_PATHS_COURT_SUB_SOURCE} healthcheck: test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9997/v2/paths/list"] interval: 30s diff --git a/squashkiwi-streaming/config/service.env b/squashkiwi-streaming/config/service.env index e29bfdd..43c202a 100644 --- a/squashkiwi-streaming/config/service.env +++ b/squashkiwi-streaming/config/service.env @@ -1,8 +1,9 @@ # SquashKiwi Streaming Configuration # Edit this file to configure your streaming service -LOCAL_DATA_FOLDER="/home/dropshell/example-squashkiwi-streaming-data" -RECORDINGS_FOLDER="/home/dropshell/example-squashkiwi-streaming-recordings" +# Data folders +LOCAL_DATA_FOLDER="/home/dropshell/squashkiwi-streaming-data" +RECORDINGS_FOLDER="/home/dropshell/squashkiwi-streaming-recordings" # Project Name used in docker-compose.yml, must be unique on the server. PROJECT_NAME="sk-streaming" diff --git a/squashkiwi-streaming/install.sh b/squashkiwi-streaming/install.sh index ed44bc7..151476d 100755 --- a/squashkiwi-streaming/install.sh +++ b/squashkiwi-streaming/install.sh @@ -24,6 +24,16 @@ if [[ "${CAMERA_PASSWORD}" == *[!\@\#\$\&\%]* ]]; then export CAMERA_PASSWORD="${CAMERA_PASSWORD_ENCODED}" fi +# Create .env file for docker-compose with all required variables +echo "Creating environment file for docker-compose..." +cat > "${LOCAL_DATA_FOLDER}/config/.env" <