Files
shanxia2.0/web-admin/.env
T

34 lines
1.2 KiB
Bash
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.
# 【通用】环境变量
# 版本号
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