CodeReview/frontend/.env.example

64 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# =============================================
# DeepAudit 前端环境变量配置
# =============================================
# 复制此文件为 .env 并填写你的配置
# 详细说明请参阅 docs/CONFIGURATION.md
#
# 注意:
# - 前后端分离架构,数据存储在后端 PostgreSQL 数据库
# - LLM 配置主要在后端 backend/.env 中设置
# - 前端可通过 /admin 页面进行运行时配置
# =============================================
# 后端 API 配置
# =============================================
# 后端 API 地址
# - 本地开发: http://localhost:8000/api/v1
# - Docker Compose 部署: /api
VITE_API_BASE_URL=/api
# =============================================
# 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 页面的"数据库管理"中导出/导入数据备份