-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (40 loc) · 1.52 KB
/
Copy path.env.example
File metadata and controls
48 lines (40 loc) · 1.52 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
# Copy to .env at the repo root and adjust for your environment.
# Local MySQL: pnpm dev:db (then pnpm dev)
# @bao/env and @bao/types are built automatically before dev (not watched).
# --- Shared secrets ---
JWT_SECRET=change-me
# Colyseus → API position persistence (PATCH /admin/characters/:id/position)
ADMIN_API_KEY=change-me
# --- MySQL (API) ---
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=
MYSQL_DATABASE=bao
# --- Service ports ---
API_PORT=9000
SERVER_PORT=7666
PORT=3000
ASSETS_PORT=8787
# --- Backend URLs (API, Colyseus) ---
API_BASE_URL=http://localhost:9000
# Comma-separated browser origins for API + Colyseus CORS (set on VPS).
# Exact origins or host wildcards (*.vercel.app). Include localhost when developing.
# CORS_ORIGINS=http://localhost:3000,*.vercel.app
#
# Vercel preview: set NEXT_PUBLIC_BAO_SERVER to wss://your-game-host (not ws://localhost).
# --- Client (Next.js / Vercel — exposed to the browser) ---
NEXT_PUBLIC_BAO_API=http://localhost:9000/client
NEXT_PUBLIC_BAO_SERVER=ws://localhost:7666
# Local baked maps/textures (started by pnpm dev via @bao/assets — serve public/)
NEXT_PUBLIC_BAO_ASSETS=http://localhost:8787
# NEXT_PUBLIC_BAO_ASSETS=https://bao-assets.rtroncoso.com
# --- Optional ---
LOG_LEVEL=info
# --- Assets deploy (npx bao deploy) — read from repo root .env ---
# AWS_S3_BUCKET=
# AWS_S3_ACCESS_KEY=
# AWS_S3_SECRET_KEY=
# AWS_S3_REGION=us-east-1
# AWS_CLOUDFRONT_DISTRIBUTION_ID=
# Optional overlay: .env.staging / .env.production (repo root or packages/assets)