模块拆分 init
This commit is contained in:
+17
-8
@@ -2,13 +2,16 @@
|
||||
HOST=0.0.0.0
|
||||
|
||||
# ================================
|
||||
# 端口配置 - 唯一修改端口的地方
|
||||
# 模块 API 对外端口
|
||||
# ================================
|
||||
# 应用端口(容器内端口)
|
||||
# gemold(moldinsight)API 对外端口
|
||||
MOLDINSIGHT_PORT=8000
|
||||
# inventory API 对外端口
|
||||
INVENTORY_PORT=8001
|
||||
# ================================
|
||||
|
||||
# 应用内部监听端口(通常无需修改;compose 内已固定为 8000/8001)
|
||||
PORT=8000
|
||||
# Docker映射到宿主机的端口(docker-compose使用)
|
||||
HOST_PORT=10001
|
||||
# ================================
|
||||
|
||||
DEBUG=false
|
||||
|
||||
@@ -28,27 +31,33 @@ POINTCLOUD_SAMPLE_COUNT=10000
|
||||
MESH_QUALITY=high
|
||||
PARALLEL_PROCESSING=true
|
||||
|
||||
# 数据库配置
|
||||
# 数据库配置(服务器已部署,请填写真实地址)
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=moldinsight
|
||||
DB_USER=moldinsight_user
|
||||
DB_PASSWORD=moldinsight_password
|
||||
|
||||
# RustFS 对象存储配置 (S3v4 API)
|
||||
# RustFS / MinIO 兼容对象存储配置(服务器已部署,请填写真实地址)
|
||||
RUSTFS_ENDPOINT=http://localhost:9000
|
||||
RUSTFS_ACCESS_KEY=your-access-key
|
||||
RUSTFS_SECRET_KEY=your-secret-key
|
||||
RUSTFS_TIMEOUT=30
|
||||
RUSTFS_PRESIGNED_URL_EXPIRES=3600
|
||||
|
||||
# Redis 配置(服务器已部署,请填写真实地址)
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
REDIS_DB=0
|
||||
|
||||
# JWT认证配置
|
||||
SECRET_KEY=your-secret-key-change-in-production-min-32-chars
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
||||
|
||||
# CORS 白名单(逗号分隔,不设置则默认为 [*],生产环境务必设置)
|
||||
# CORS_ORIGINS=http://localhost:5173,http://localhost:10001,https://your-domain.com
|
||||
# CORS_ORIGINS=http://localhost:5173,http://localhost:8000,http://localhost:8001,https://your-domain.com
|
||||
|
||||
# 管理员账户配置
|
||||
ADMIN_USERNAME=admin
|
||||
|
||||
Reference in New Issue
Block a user