fix(config): 修复 .env 加载与密码初始化

- 统一开发脚本、Vite 代理与 Docker Compose 的 HOST/PORT 配置
- 首次启动按字面值读取 AUTH_PASSWORD,避免 ${VAR} 被环境变量插值
- 已有 auth.json 时继续以 Web 端密码为准,不受 .env 覆盖
This commit is contained in:
Arepeater
2026-08-05 17:56:27 +08:00
parent c278dd3b02
commit b43e2fe44a
15 changed files with 237 additions and 49 deletions
+2 -1
View File
@@ -125,7 +125,8 @@ COPY --from=stocksdk-builder /build/node_modules ./app/plugins/stocksdk/node_mod
COPY tiers.yaml /app/tiers.yaml
ENV STATIC_DIR=/app/static \
TIERS_YAML=/app/tiers.yaml \
DATA_DIR=/app/data
DATA_DIR=/app/data \
TICKFLOW_ENV_FILE=/app/.env
# Frontend 静态产物
COPY --from=frontend-builder /build/dist ./static