From 8c096c00cc5bd9896c0b146115a20c8664b2ceaf Mon Sep 17 00:00:00 2001 From: vinland100 Date: Mon, 5 Jan 2026 15:56:09 +0800 Subject: [PATCH] config: update Docker Compose service definitions and frontend environment variable examples. --- docker-compose.yml | 2 +- frontend/.env.example | 65 ++----------------------------------------- 2 files changed, 4 insertions(+), 63 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b1fb1b4..6812f62 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,7 +66,7 @@ services: redis: condition: service_healthy # 开发模式:启用 --reload 热重载 - command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload" + command: sh -c ".venv/bin/alembic upgrade head && .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000" networks: - deepaudit-network diff --git a/frontend/.env.example b/frontend/.env.example index 40ebfaa..cc384f0 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,63 +1,4 @@ -# ============================================= -# DeepAudit 前端环境变量配置 -# ============================================= -# 复制此文件为 .env 并填写你的配置 -# 详细说明请参阅 docs/CONFIGURATION.md -# -# 注意: -# - 前后端分离架构,数据存储在后端 PostgreSQL 数据库 -# - LLM 配置主要在后端 backend/.env 中设置 -# - 前端可通过 /admin 页面进行运行时配置 - -# ============================================= -# 后端 API 配置 -# ============================================= -# 后端 API 地址 -# - 本地开发: http://localhost:8000/api/v1 -# - Docker Compose 部署: /api +# 核心 API 配置 (必填) VITE_API_BASE_URL=/api/v1 - -# ============================================= -# Git 仓库集成配置(可选) -# ============================================= -# 用于前端直接访问公开仓库 -# 私有仓库建议在后端 backend/.env 中配置 - -# GitHub Personal Access Token -# 获取地址: https://github.com/settings/tokens -# VITE_GITHUB_TOKEN=ghp_your_github_token_here - -# GitLab Personal Access Token -# 获取地址: https://gitlab.com/-/profile/personal_access_tokens -# VITE_GITLAB_TOKEN=glpat-your_gitlab_token_here - -# ============================================= -# 应用配置 -# ============================================= -# 应用 ID(用于本地存储隔离) -VITE_APP_ID=deepaudit - -# ============================================= -# 代码分析配置 -# ============================================= -# 单次扫描最大文件数 -VITE_MAX_ANALYZE_FILES=0 - -# LLM 并发请求数 -VITE_LLM_CONCURRENCY=2 - -# LLM 请求间隔(毫秒) -VITE_LLM_GAP_MS=500 - -# 分析结果输出语言 -# zh-CN: 中文 -# en-US: 英文 -VITE_OUTPUT_LANGUAGE=zh-CN - -# ============================================= -# 重要提示 -# ============================================= -# 1. LLM 配置(API Key、模型等)请在后端 backend/.env 中设置 -# 2. 前端可通过 /admin 页面进行运行时配置,无需重启服务 -# 3. 数据存储在后端 PostgreSQL 数据库中 -# 4. 可在 /admin 页面的"数据库管理"中导出/导入数据备份 +# 应用标识 (可选) +VITE_APP_ID=deepaudit \ No newline at end of file