Files
Edu/.env.example
SpecialX 1eacd1ed87 feat(teacher-portal): 完整实现 teacher-portal 微前端
包含 settings/students/api、graphql、mocks、ui-tokens 设计令牌等
2026-07-10 19:10:20 +08:00

49 lines
1.4 KiB
Plaintext
Raw Permalink 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.
# 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-portalai13MF Shell
# GraphQL endpoint经 api-gateway 代理到 teacher-bffcontract.md §2.3
NEXT_PUBLIC_TEACHER_BFF_GRAPHQL_URL=/api/v1/teacher/graphql
# MSW mock 开关contract.md §4.2enabled 时启用 MSW 拦截上游)
NEXT_PUBLIC_API_MOCKING=enabled
# MF Remote 开关ARB-002 §2.3P2 默认 falseP3+ 启用 student-portal
NEXT_PUBLIC_MF_ENABLED=false
# api-gateway URLnext.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
# Neo4jP4 启用)
NEO4J_PASSWORD=changeme
# KafkaP3 启用)
KAFKA_BROKERS=localhost:9092