49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
# MySQL
|
||
MYSQL_ROOT_PASSWORD=changeme
|
||
MYSQL_DATABASE=next_edu_cloud
|
||
MYSQL_USER=edu
|
||
MYSQL_PASSWORD=changeme
|
||
|
||
# Redis
|
||
REDIS_PASSWORD=
|
||
|
||
# JWT (P1 用 HS256 测试密钥,P2 改 RS256)
|
||
JWT_SECRET=p1-dev-secret-change-in-production
|
||
JWT_ISSUER=next-edu-cloud
|
||
JWT_AUDIENCE=next-edu-cloud
|
||
|
||
# 开发模式旁路(仅本地联调)
|
||
# DEV_MODE=true 时接受 "Authorization: Bearer dev-token" 旁路 JWT 校验,
|
||
# 注入固定身份 x-user-id=dev-user, x-user-roles=teacher,admin
|
||
# 生产环境必须设为 false 或不设此变量
|
||
DEV_MODE=false
|
||
|
||
# 服务端口
|
||
API_GATEWAY_PORT=8080
|
||
CLASSES_SERVICE_PORT=3001
|
||
TEACHER_PORTAL_PORT=4000
|
||
|
||
# teacher-portal(ai13,MF Shell)
|
||
# GraphQL endpoint(经 api-gateway 代理到 teacher-bff,contract.md §2.3)
|
||
NEXT_PUBLIC_TEACHER_BFF_GRAPHQL_URL=/api/v1/teacher/graphql
|
||
# MSW mock 开关(contract.md §4.2,enabled 时启用 MSW 拦截上游)
|
||
NEXT_PUBLIC_API_MOCKING=enabled
|
||
# MF Remote 开关(ARB-002 §2.3,P2 默认 false,P3+ 启用 student-portal)
|
||
NEXT_PUBLIC_MF_ENABLED=false
|
||
# api-gateway URL(next.config.js rewrites 代理目标)
|
||
API_GATEWAY_URL=http://localhost:8080
|
||
|
||
# 数据库连接
|
||
DATABASE_URL=mysql://edu:changeme@localhost:3306/next_edu_cloud
|
||
REDIS_URL=redis://localhost:6379
|
||
|
||
# 可观测性
|
||
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
|
||
LOG_LEVEL=info
|
||
|
||
# Neo4j(P4 启用)
|
||
NEO4J_PASSWORD=changeme
|
||
|
||
# Kafka(P3 启用)
|
||
KAFKA_BROKERS=localhost:9092
|