From 215f6e68c5223a3ae92df025d68ee9aa5b079c66 Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Thu, 23 Jul 2026 17:58:07 +0800 Subject: [PATCH] fix: start config code setting update --- .../secure-single-file-run-distribution/.openspec.yaml | 2 ++ platform_web/.env | 4 ++++ platform_web/.env.example | 2 +- scripts/local-debug/env.sh | 4 ++-- scripts/local-debug/start.sh | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 openspec/changes/secure-single-file-run-distribution/.openspec.yaml create mode 100644 platform_web/.env diff --git a/openspec/changes/secure-single-file-run-distribution/.openspec.yaml b/openspec/changes/secure-single-file-run-distribution/.openspec.yaml new file mode 100644 index 0000000..9e5b8a1 --- /dev/null +++ b/openspec/changes/secure-single-file-run-distribution/.openspec.yaml @@ -0,0 +1,2 @@ +schema: spec-driven +created: 2026-07-23 diff --git a/platform_web/.env b/platform_web/.env new file mode 100644 index 0000000..5b2df61 --- /dev/null +++ b/platform_web/.env @@ -0,0 +1,4 @@ +VITE_PLATFORM_API_BASE_URL=/api/v1 +PLATFORM_API_PROXY=http://0.0.0.0:8080 +VITE_ENABLE_LOCAL_AUTH_FALLBACK=true + diff --git a/platform_web/.env.example b/platform_web/.env.example index e19796a..5b2df61 100644 --- a/platform_web/.env.example +++ b/platform_web/.env.example @@ -1,4 +1,4 @@ VITE_PLATFORM_API_BASE_URL=/api/v1 -PLATFORM_API_PROXY=http://127.0.0.1:8080 +PLATFORM_API_PROXY=http://0.0.0.0:8080 VITE_ENABLE_LOCAL_AUTH_FALLBACK=true diff --git a/scripts/local-debug/env.sh b/scripts/local-debug/env.sh index 491b176..7b9c333 100755 --- a/scripts/local-debug/env.sh +++ b/scripts/local-debug/env.sh @@ -29,7 +29,7 @@ export PLATFORM_AI_PROVIDER_MODE="${PLATFORM_AI_PROVIDER_MODE:-mock}" export RUN_SOURCE_DIR="${RUN_SOURCE_DIR:-${RUN_REPO_DIR:-$LOCAL_DEBUG_ROOT_DIR/run}}" export RUN_REPO_DIR="$RUN_SOURCE_DIR" export RUN_MODE="${RUN_MODE:-worker}" -export RUN_PLATFORM_URL="${RUN_PLATFORM_URL:-http://127.0.0.1:$LOCAL_DEBUG_PLATFORM_PORT}" +export RUN_PLATFORM_URL="${RUN_PLATFORM_URL:-https://scum.npc0.com:$LOCAL_DEBUG_PLATFORM_PORT}" export RUN_ENDPOINT_ID="${RUN_ENDPOINT_ID:-run-local-debug}" export RUN_DISPLAY_NAME="${RUN_DISPLAY_NAME:-Local Debug Run}" export RUN_VERSION="${RUN_VERSION:-0.1.0-local-debug}" @@ -53,7 +53,7 @@ local_debug_platform_url() { } local_debug_web_url() { - printf 'http://127.0.0.1:%s' "$LOCAL_DEBUG_WEB_PORT" + printf 'http://0.0.0.0:%s' "$LOCAL_DEBUG_WEB_PORT" } local_debug_plugin_source_dir() { diff --git a/scripts/local-debug/start.sh b/scripts/local-debug/start.sh index 99a531f..fff46b3 100755 --- a/scripts/local-debug/start.sh +++ b/scripts/local-debug/start.sh @@ -184,7 +184,7 @@ start_service platform_web "$ROOT_DIR" env \ PLATFORM_API_PROXY="$PLATFORM_API_PROXY" \ VITE_PLATFORM_API_BASE_URL="$VITE_PLATFORM_API_BASE_URL" \ VITE_ENABLE_LOCAL_AUTH_FALLBACK="$VITE_ENABLE_LOCAL_AUTH_FALLBACK" \ - npm --prefix platform_web run dev -- --port "$LOCAL_DEBUG_WEB_PORT" + npm --prefix platform_web run dev -- --host "0.0.0.0" --port "$LOCAL_DEBUG_WEB_PORT" wait_for_url platform_web "$(local_debug_web_url)"