Files
opendance-web/web-server/.env.example
T

38 lines
1.3 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.
# ============================================================
# OpenDance Studio Web 服务端 —— 环境变量样例
# 复制为 .env 后填写。.env 已被 .gitignore 忽略,禁止提交。
# ============================================================
# ---- 服务 ----
NODE_ENV=production
PORT=3000
# 监听地址。本地开发用 0.0.0.0(便于同网段设备联调);
# 生产原生部署应设为 127.0.0.1,仅由 nginx 反向代理访问
HOST=0.0.0.0
# ---- 现有 MySQL 实例(外部提供,本项目不部署 MySQL)----
# 当前部署:MariaDB 10.11 @ 192.168.150.10
DB_HOST=192.168.150.10
DB_PORT=3306
DB_USER=dpendance
DB_PASS=<部署方提供>
DB_NAME=dpendance
# 生产环境必须为 false,表结构一律走 TypeORM migration
DB_SYNCHRONIZE=false
DB_LOGGING=false
# ---- 文件存储 ----
# 容器内路径,docker-compose 会挂载为卷
STORAGE_DIR=/data/storage
# 单文件上传上限(字节),默认 512 MiB
UPLOAD_MAX_BYTES=536870912
# ---- 可选的 Assimp(FBX/glTF 动作预处理)----
# 未安装时 FBX 动作的预处理会以失败状态返回,不影响 BVH
ASSIMP_BIN=assimp
# ---- 契约目录(可选)----
# 设置后 /health 与 /api/catalog/version 会读取该目录下的 VERSION 文件;
# 未设置时使用编译进代码的契约版本常量
# CONTRACTS_DIR=/contracts