-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy path.env.example
More file actions
94 lines (69 loc) · 3.04 KB
/
Copy path.env.example
File metadata and controls
94 lines (69 loc) · 3.04 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# ── Coordinator Service ──
# MPC node endpoints (3 nodes required for REP3 protocol)
MPC_NODE_0=http://localhost:8101
MPC_NODE_1=http://localhost:8102
MPC_NODE_2=http://localhost:8103
# Path to compiled Noir circuit artifacts (ACIR)
CIRCUIT_DIR=./circuits
# Path to CRS (common reference string) for proof generation
CRS_DIR=./crs
# Committee signing key (Stellar secret key, S...)
COMMITTEE_SECRET=S...
# Optional Stellar CLI identity label used by staging integration checks
COMMITTEE_IDENTITY=committee-local
# Coordinator bind address
BIND_ADDR=0.0.0.0:8080
# ── Soroban / Stellar ──
# Soroban RPC endpoint
SOROBAN_RPC=http://localhost:8000/soroban/rpc
# Deployed poker-table contract ID
POKER_TABLE_CONTRACT=C...
# Stellar network passphrase
NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
# Reference table ID for cloning config on table creation
ONCHAIN_TABLE_ID=0
# ── Player Identities (for local/solo mode) ──
# Map on-chain addresses to local signing identities
PLAYER1_ADDRESS=G...
PLAYER1_IDENTITY=player1-local
PLAYER2_ADDRESS=G...
PLAYER2_IDENTITY=player2-local
# ── Database (optional — omit to run with in-memory state only) ──
# PostgreSQL connection URL for the coordinator database.
# When set, the coordinator applies pending migrations on startup and persists
# table sessions, MPC sessions, auth nonces, and player stats to the DB.
# DATABASE_URL=postgres://coordinator:password@localhost:5432/coordinator
# ── Optional ──
# Default buy-in for solo tables (stroops)
LOBBY_BUY_IN=1000000000
# Max table IDs to scan for open tables
OPEN_TABLE_SCAN_MAX=32
# Friendbot URL for testnet top-ups (auto-detected for localhost)
# FRIENDBOT_URL=http://localhost:8000/friendbot
# ── Admin RBAC ──
# JSON array of admin public keys with roles: super-admin, operator, read-only
# Admin endpoints require Stellar-signed payloads with x-admin-address / x-admin-signature headers.
# ADMIN_KEYS=[{"key":"GABCD...","role":"super-admin"},{"key":"GEFGH...","role":"operator"}]
# Skip auth signature verification (development only!)
# ALLOW_INSECURE_DEV_AUTH=true
# ── Frontend (Next.js) ──
NEXT_PUBLIC_COORDINATOR_URL=http://localhost:8080
# ── Feature Flags ──
#
# Each flag is read at coordinator startup.
# Value: 1 | true | yes | on → enabled
# 0 | false | no | off → disabled (default)
#
# Global flags
# FEATURE_FLAG_NEW_CIRCUITS=0 # Enable experimental circuit versions
# FEATURE_FLAG_CONTRACT_UPGRADE=0 # Gate new Soroban contract function calls
# FEATURE_FLAG_EXPERIMENTAL_UI=0 # Signal the UI to render next-gen components
# FEATURE_FLAG_CHAT_ENABLED=0 # Enable in-table WebSocket chat
# FEATURE_FLAG_SOLO_MODE=0 # Allow solo / bot-opponent table creation
#
# Per-table overrides (suffix: _TABLE_<id>)
# FEATURE_FLAG_CHAT_ENABLED_TABLE_3=1 # Enable chat only on table 3
# FEATURE_FLAG_NEW_CIRCUITS_TABLE_7=1 # Use new circuits only on table 7
#
# Per-player overrides (suffix: _PLAYER_<stellar-address>)
# FEATURE_FLAG_EXPERIMENTAL_UI_PLAYER_GABC...=1