chore: untrack web-admin env files force-added in Task 6.
Keep wx-qr encrypt exclude paths in local env files only; they remain gitignored. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c5a0e17a05
commit
e54c1bdfef
3 files changed
-85
No files matched your search
@@ -1,33 +0,0 @@
|
||||
# 【通用】环境变量
|
||||
|
||||
# 版本号
|
||||
VITE_VERSION = 3.0.2
|
||||
|
||||
# 端口号
|
||||
VITE_PORT = 3006
|
||||
|
||||
# 应用部署基础路径(如部署在子目录 /admin,则设置为 /admin/)
|
||||
VITE_BASE_URL = /
|
||||
|
||||
# 权限模式【 frontend 前端模式 / backend 后端模式 】
|
||||
VITE_ACCESS_MODE = frontend
|
||||
|
||||
# 跨域请求时是否携带 Cookie(开启前需确保后端支持)
|
||||
VITE_WITH_CREDENTIALS = false
|
||||
|
||||
# 是否打开路由信息
|
||||
VITE_OPEN_ROUTE_INFO = false
|
||||
|
||||
# 锁屏加密密钥
|
||||
VITE_LOCK_ENCRYPT_KEY = s3cur3k3y4adpro
|
||||
|
||||
# API 应用层加密(当前实现使用 VITE_API_ENCRYPT_*)
|
||||
VITE_API_ENCRYPT_ENABLED = false
|
||||
VITE_API_ENCRYPT_FAIL_OPEN = false
|
||||
VITE_API_ENCRYPT_FIXED_SECRET = sqxp-web-api-crypto-fixed-secret
|
||||
VITE_API_ENCRYPT_EXCLUDE_PATHS = /web/auth/login-rsa-public-key,/web/auth/login,/web/auth/refresh-token,/web/admin/attachment/upload,/web/admin/products/upload-image,/web/admin/categories/upload-image,/web/admin/users/upload-avatar,/api/invoice/download,/web/auth/mp-webview-exchange,/web/auth/wx-qr/create,/web/auth/wx-qr/status
|
||||
|
||||
# 本地开发专用(*.local 已被 gitignore,勿提交)
|
||||
VITE_AMAP_KEY=1aa4ee7a9b9b662ae633b18c2bad2c21
|
||||
# 若高德控制台启用了安全密钥,在此填写:
|
||||
VITE_AMAP_SECURITY_CODE=e10e42d487e4007b4b21f3d58b687ca8
|
||||
@@ -1,32 +0,0 @@
|
||||
# Web Admin 开发环境
|
||||
|
||||
# 应用部署基础路径
|
||||
VITE_BASE_URL=/
|
||||
|
||||
# 后端 API 基地址(开发环境走 Vite 代理 /api → localhost:8000,避免浏览器跨域)
|
||||
VITE_API_URL=/api
|
||||
|
||||
# 是否携带 cookie
|
||||
VITE_WITH_CREDENTIALS=false
|
||||
|
||||
# API 应用层加密(当前实现使用 VITE_API_ENCRYPT_*)
|
||||
VITE_API_ENCRYPT_ENABLED=false
|
||||
VITE_API_ENCRYPT_FAIL_OPEN=false
|
||||
VITE_API_ENCRYPT_FIXED_SECRET=sqxp-web-api-crypto-fixed-secret
|
||||
VITE_API_ENCRYPT_EXCLUDE_PATHS=/web/auth/login-rsa-public-key,/web/auth/login,/web/auth/refresh-token,/web/admin/attachment/upload,/web/admin/products/upload-image,/web/admin/categories/upload-image,/web/admin/users/upload-avatar,/api/invoice/download,/web/auth/mp-webview-exchange,/web/auth/wx-qr/create,/web/auth/wx-qr/status
|
||||
|
||||
# 代理目标地址(仅用于 /api 代理;保持本地后端)
|
||||
VITE_API_PROXY_URL=http://localhost:8000
|
||||
|
||||
# 是否移除 console
|
||||
VITE_DROP_CONSOLE=false
|
||||
|
||||
# 权限模式(前端固定菜单模式)
|
||||
VITE_ACCESS_MODE=frontend
|
||||
|
||||
# 高德地图 Web JS API(敏感 Key 请写入 .env.development.local / 生产构建环境变量)
|
||||
# VITE_AMAP_KEY=
|
||||
# VITE_AMAP_SECURITY_CODE=
|
||||
|
||||
# MinIO 文件访问前缀(生产环境通过 nginx 代理,此处留空或指向本地 MinIO)
|
||||
VITE_MINIO_BASE_URL=http://47.99.164.66:20004/zkxw
|
||||
@@ -1,20 +0,0 @@
|
||||
# shanxia2.0 Web 管理端生产构建配置
|
||||
# 产物部署到:/iflytek/shanxia2.0/web/dist
|
||||
|
||||
VITE_VERSION=3.0.2
|
||||
VITE_BASE_URL=/
|
||||
|
||||
VITE_API_URL=/api
|
||||
|
||||
VITE_WITH_CREDENTIALS=false
|
||||
VITE_ACCESS_MODE=frontend
|
||||
VITE_OPEN_ROUTE_INFO=false
|
||||
VITE_LOCK_ENCRYPT_KEY=s3cur3k3y4adpro
|
||||
|
||||
VITE_API_ENCRYPT_ENABLED=false
|
||||
VITE_API_ENCRYPT_FAIL_OPEN=false
|
||||
VITE_API_ENCRYPT_FIXED_SECRET=sqxp-web-api-crypto-fixed-secret
|
||||
VITE_API_ENCRYPT_EXCLUDE_PATHS=/web/auth/login-rsa-public-key,/web/auth/login,/web/auth/refresh-token,/web/admin/attachment/upload,/web/admin/products/upload-image,/web/admin/categories/upload-image,/web/admin/users/upload-avatar,/api/invoice/download,/web/auth/mp-webview-exchange,/web/auth/wx-qr/create,/web/auth/wx-qr/status
|
||||
|
||||
# 同域反代 MinIO(Nginx location ^~ /ruoyi/ → :9000);勿写 http://IP:9000,否则 HTTPS 页 Mixed Content
|
||||
VITE_MINIO_BASE_URL=/ruoyi
|
||||
Reference in new issue
Block a user