-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.env.example
More file actions
61 lines (50 loc) · 2.48 KB
/
production.env.example
File metadata and controls
61 lines (50 loc) · 2.48 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
54
55
56
57
58
59
60
61
# =========================
# Core runtime
# =========================
PORT=8090 # HTTP port
NODE_ENV=development # development | production | test
LOG_PRETTY=true # pretty console logging (true/false)
# =========================
# Security
# =========================
JWT_SECRET=superlongsistencharaktersectre # REQUIRED, min 16 chars (make sure its the same value as in the xLink API env)
# Comma-separated list of allowed origins, or * for all
# Example: http://localhost:3000,https://my-frontend.com
CORS_ORIGIN=*
# Node/Express trust proxy setting
# Can be: loopback | linklocal | uniquelocal | 1 | 2 | etc.
TRUST_PROXY=loopback
# =========================
# HTTP client / timeouts
# =========================
HTTP_TIMEOUT_MS=15000 # Axios timeout for upstream calls in ms
# =========================
# Global rate limiting
# =========================
GLOBAL_RATE_LIMIT_WINDOW_MS=60000 # Time window for global rate limit in ms
GLOBAL_RATE_LIMIT_MAX=600 # Max requests per IP per window
# Purchase-specific rate limiting
PURCHASE_RATE_LIMIT_WINDOW_MS=60000 # Time window for purchase routes in ms
PURCHASE_RATE_LIMIT_MAX=20 # Max purchase requests per IP per window
# =========================
# Minecraft / PlayFab config
# =========================
MC_GAME_VERSION=1.21.62 # Minecraft game version used in auth payload
MC_PLATFORM=Windows10 # Platform identifier
PLAYFAB_TITLE_ID=20ca2 # PlayFab title ID
ACCEPT_LANGUAGE=en-US # Default Accept-Language for upstream calls
# =========================
# Swagger / API docs
# =========================
SWAGGER_ENABLED=true # Enable Swagger UI and /openapi.json
SWAGGER_SERVER_URL=http://localhost:8090 # Base URL shown in Swagger (optional)
# =========================
# Marketplace / xLink integration
# =========================
ENABLE_MARKETPLACE_API=false # Toggle external marketplace API usage
MARKETPLACE_API_BASE= # Base URL for external marketplace API, e.g. https://api.example.com
ENABLE_XLINK_API=false # Toggle xLink-specific API usage
XLINK_API_BASE= # Base URL for xLink API (if used)
CLIENT_ID_PURCHASE=xlink_purchase_addon # Client ID used in purchase CustomTags
EDITION_TYPE=Android # Edition type used in purchase payload
BUILD_PLAT=1 # Build platform ID used in purchase payload