Files
simple321vip 024f306636 v2 refacting
2026-06-28 23:02:32 +08:00

47 lines
1.5 KiB
Bash
Raw Permalink 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.
# ============== 环境变量模板 ==============
# 复制为 .env.development / .env.production / .env.test 后填入真实值。
# 真实值不要 commit 到 git。
# 当前模式名(dev / test / prod
VITE_MODE_NAME=development
# 资源 CDN 前缀
VITE_RES_URL=http://localhost:5173/
# 后端 API 基础地址
# ⚠️ 本地必须写前端自己(http://localhost:5173),由 Vite proxy 转发
# 写 http://localhost:8080/auth 会让浏览器绕过 proxy 直连 8080
# dev: http://localhost:5173
# dev (K8s): https://dev.violin-home.cn
# prod: https://www.violin-home.cn
VITE_APP_URL=http://localhost:5173
# 应用元信息
VITE_APP_TITLE=violin-home
VITE_APP_ID=123456
VITE_AGENT_ID=123456
# 是否启用 mockdev 启用,prod 关闭)
VITE_LOGIN_TEST=true
# ============== OIDC / Authentik 配置 ==============
# 三个环境的 issuer + client-id + redirect-uri 都不一样。
# dev 与 prod 必须用 Authentik 后台两个独立的 Application
# 因为 redirect-uri 不同(dev 走 localhostprod 走域名)。
# Authentik 域名(dev / prod 共用,dev 仅用于登录页跳转)
VITE_OIDC_ISSUER=https://auth.violin-work.online
# 客户端 ID(在 Authentik 后台创建)
# dev: violin-home-dev
# prod: violin-home
VITE_OIDC_CLIENT_ID=
# 回调 URI(必须与 Authentik 后台配置的完全一致)
# dev: http://localhost:5173/auth/callback
# prod: https://www.violin-home.cn/auth/callback
VITE_OIDC_REDIRECT_URI=
# 编辑器标识
VITE_EDITOR=vscode