-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.env.example
More file actions
53 lines (42 loc) · 2.13 KB
/
.env.example
File metadata and controls
53 lines (42 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ======================================
# 环境变量模板 — 复制为 .env 并按需填写
# ======================================
# ------------------------------------------------------------------------------
# PostgreSQL (Docker Compose + Drizzle 均读取)
# ------------------------------------------------------------------------------
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/specc
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=specc
# ------------------------------------------------------------------------------
# 服务端 (packages/server)
# ------------------------------------------------------------------------------
NODE_ENV=development
PORT=4000
# 允许携带 Cookie 的 CORS 来源(逗号分隔)。
# 生产环境请改为实际前端域名,例如 https://app.example.com
CORS_ORIGIN=http://localhost:5173,http://localhost:4173
# ------------------------------------------------------------------------------
# 对象存储 — S3 兼容(AWS S3 / MinIO / 阿里云 OSS)
# 以下默认值对应 docker-compose 启动的本地 MinIO 实例
# ------------------------------------------------------------------------------
STORAGE_PROVIDER=s3
# 留空则使用 AWS 默认 endpoint;MinIO 或其他提供商需要明确指定
STORAGE_ENDPOINT=http://localhost:9000
STORAGE_REGION=us-east-1
STORAGE_BUCKET=avatars
STORAGE_ACCESS_KEY_ID=minioadmin
STORAGE_SECRET_ACCESS_KEY=minioadmin
# 浏览器可直接访问的存储公共 URL(生产环境改为 CDN 或 OSS 公共域名)
STORAGE_PUBLIC_URL=http://localhost:9000
# true = Path-style URL(MinIO 必须);false = Virtual-hosted style(AWS S3、OSS)
STORAGE_PATH_STYLE=true
# Docker Compose 中 MinIO 容器的 root 凭证
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
MINIO_BUCKET=avatars
# ------------------------------------------------------------------------------
# 前端 (packages/web) — 所有客户端变量必须以 VITE_ 开头
# ------------------------------------------------------------------------------
# 浏览器侧的 tRPC 端点地址;生产环境改为 https://api.example.com/trpc
VITE_TRPC_URL=/trpc