From f99fe3a42bdfcf996708754df3ccf0972bb0e424 Mon Sep 17 00:00:00 2001 From: binfan5 Date: Sun, 15 Mar 2026 16:08:01 +0800 Subject: [PATCH 1/2] fix(deploy): default runtime quickstart to local storage --- .env.release.example | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.release.example b/.env.release.example index d83858eb..2b659ef1 100644 --- a/.env.release.example +++ b/.env.release.example @@ -7,7 +7,8 @@ POSTGRES_IMAGE=postgres:16-alpine REDIS_IMAGE=redis:7-alpine # Public entrypoint seen by browsers/CLI, no trailing slash. -SKILLHUB_PUBLIC_BASE_URL=https://skillhub.example.com +# Default to localhost so `runtime.sh up` works as a zero-config quickstart. +SKILLHUB_PUBLIC_BASE_URL=http://localhost # Frontend usually keeps this empty and proxies to the backend through nginx. SKILLHUB_WEB_API_BASE_URL= @@ -23,10 +24,11 @@ REDIS_BIND_ADDRESS=127.0.0.1 REDIS_PORT=6379 API_PORT=8080 WEB_PORT=80 -SESSION_COOKIE_SECURE=true +SESSION_COOKIE_SECURE=false -# Production default is external S3/OSS compatible storage. -SKILLHUB_STORAGE_PROVIDER=s3 +# Zero-config runtime validation uses local storage. +# Switch to `s3` and fill the fields below before a real production deployment. +SKILLHUB_STORAGE_PROVIDER=local SKILLHUB_STORAGE_S3_ENDPOINT=https://oss-cn-example.aliyuncs.com SKILLHUB_STORAGE_S3_PUBLIC_ENDPOINT= SKILLHUB_STORAGE_S3_BUCKET=skillhub-prod From 3901bfa0950bbff22fd0641a7a96ee8126220c5f Mon Sep 17 00:00:00 2001 From: binfan5 Date: Sun, 15 Mar 2026 16:50:59 +0800 Subject: [PATCH 2/2] fix --- scripts/runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtime.sh b/scripts/runtime.sh index 8113a30a..429f9ede 100644 --- a/scripts/runtime.sh +++ b/scripts/runtime.sh @@ -13,7 +13,7 @@ SKILLHUB_HOME_DEFAULT="${TMPDIR:-/tmp}/skillhub-runtime" SKILLHUB_HOME="${SKILLHUB_HOME:-$SKILLHUB_HOME_DEFAULT}" SKILLHUB_VERSION_VALUE="${SKILLHUB_VERSION:-}" SKILLHUB_ALIYUN_REGISTRY="${SKILLHUB_ALIYUN_REGISTRY:-crpi-ptu2rqimrigtq0qx.cn-hangzhou.personal.cr.aliyuncs.com}" -SKILLHUB_ALIYUN_NAMESPACE="${SKILLHUB_ALIYUN_NAMESPACE:-test1245}" +SKILLHUB_ALIYUN_NAMESPACE="${SKILLHUB_ALIYUN_NAMESPACE:-skill_hub}" SKILLHUB_MIRROR_REGISTRY_VALUE="${SKILLHUB_MIRROR_REGISTRY:-}" SKILLHUB_SERVER_IMAGE_VALUE="${SKILLHUB_SERVER_IMAGE:-}" SKILLHUB_WEB_IMAGE_VALUE="${SKILLHUB_WEB_IMAGE:-}"