Go workspace (go.work) with 5 microservices + shared library: - gateway (8080), auth-service (8081), purchaser-service (8082) - textile-service (8083), washing-service (8084) - shared: proto definitions, common packages Infrastructure: docker-compose for local dev, K8s manifests for K3s cluster deployment (mysql/redis/etcd + traefik ingress). Frontend (iloom-flatten) added as git submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
688 B
Plaintext
29 lines
688 B
Plaintext
# iloom 微服务环境变量配置
|
|
|
|
# MySQL (共享 muyu_wms 数据库)
|
|
DB_DSN=root:muyu2026@tcp(mysql:3306)/muyu_wms?parseTime=true&charset=utf8mb4
|
|
|
|
# JWT (复用 muyu 认证)
|
|
JWT_SECRET=muyu-wms-jwt-secret-key-2026
|
|
JWT_REFRESH_SECRET=muyu-wms-jwt-refresh-2026
|
|
|
|
# muyu gRPC 地址
|
|
MUYU_SYSTEM_RPC_ADDR=system-rpc:9001
|
|
MUYU_INVENTORY_RPC_ADDR=inventory-rpc:9002
|
|
|
|
# 服务间调用密钥
|
|
INTERNAL_SERVICE_KEY=internal-service-shared-secret
|
|
|
|
# 服务端口
|
|
GATEWAY_PORT=8080
|
|
AUTH_SERVICE_PORT=8081
|
|
PURCHASER_SERVICE_PORT=8082
|
|
TEXTILE_SERVICE_PORT=8083
|
|
WASHING_SERVICE_PORT=8084
|
|
|
|
# 前端
|
|
FRONTEND_URL=http://localhost:3015
|
|
|
|
# CORS
|
|
ALLOW_ORIGINS=http://localhost:3015,http://localhost:3000
|