-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
66 lines (51 loc) · 1.7 KB
/
Copy path.env.example
File metadata and controls
66 lines (51 loc) · 1.7 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
62
63
64
65
66
# ============================================================================
# OpenBare Server - Environment Variables
# Copy this to .env and customize for your deployment
# ============================================================================
# Server Configuration
# --------------------
PORT=8080
HOST=0.0.0.0
# Node Identification
# -------------------
# Unique identifier for this node (auto-generated if not set)
NODE_ID=my-bare-node-1
# Geographic region (used for node discovery)
# Examples: us-east, eu-west, asia-pacific, etc.
REGION=us-east
# Public URL of this node (required for registry)
NODE_URL=https://bare.example.com
# Contact information for node operator (optional but recommended)
OWNER_CONTACT=admin@example.com
# Rate Limiting
# -------------
# Window size in milliseconds (default: 60000 = 1 minute)
RATE_LIMIT_WINDOW_MS=60000
# Max requests per window (default: 100)
RATE_LIMIT_MAX=100
# Registry Configuration (Optional)
# ---------------------------------
# URL of the OpenBare registry to register with
# Leave empty to run in standalone mode
REGISTRY_URL=https://registry.openbare.dev
# Heartbeat interval in milliseconds (default: 30000 = 30 seconds)
HEARTBEAT_INTERVAL=30000
# Logging
# -------
# Log level: trace, debug, info, warn, error, fatal
LOG_LEVEL=info
# Pretty print logs (set to false in production for JSON logs)
LOG_PRETTY=true
# CORS Configuration
# ------------------
# Allowed origins (default: * for all)
CORS_ORIGIN=*
# Bare Server Configuration
# -------------------------
# Maintainer email (shown in bare server info)
MAINTAINER_EMAIL=admin@example.com
# Maintainer website
MAINTAINER_WEBSITE=https://example.com
# Environment
# -----------
NODE_ENV=production