From f99fe3a42bdfcf996708754df3ccf0972bb0e424 Mon Sep 17 00:00:00 2001 From: binfan5 Date: Sun, 15 Mar 2026 16:08:01 +0800 Subject: [PATCH] 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