Add lightweight PHP media proxy for radio streams

This commit is contained in:
Jage9
2026-02-22 02:18:02 -05:00
parent f05d017307
commit 05722e3fe2
3 changed files with 275 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ REPO_ROOT="${1:-/home/bestmidi/chgrid}"
PUBLISH_DIR="${2:-/home/bestmidi/public_html/chgrid}"
BASE_PATH="${3:-/chgrid/}"
CLIENT_DIR="$REPO_ROOT/client"
PHP_PROXY_DIR="$REPO_ROOT/deploy/php"
if [[ ! -d "$CLIENT_DIR" ]]; then
echo "error: client directory not found: $CLIENT_DIR" >&2
@@ -23,5 +24,9 @@ VITE_BASE_PATH="$BASE_PATH" npm run build
mkdir -p "$PUBLISH_DIR"
rsync -a --delete dist/ "$PUBLISH_DIR/"
if [[ -d "$PHP_PROXY_DIR" ]]; then
rsync -a "$PHP_PROXY_DIR/" "$PUBLISH_DIR/"
fi
echo "client deploy complete: $PUBLISH_DIR"
echo "client base path: $BASE_PATH"