mirror of
https://github.com/arjunkomath/openclaw-railway-template.git
synced 2026-08-14 00:48:11 +00:00
82 lines
3.3 KiB
Bash
82 lines
3.3 KiB
Bash
# =============================================================================
|
|
# OpenClaw Railway Template - Environment Variables
|
|
# =============================================================================
|
|
# Copy this file to .env for local development
|
|
# For Railway deployment, set these in the Railway dashboard Variables section
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# REQUIRED VARIABLES
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Password to access the /setup wizard
|
|
# For Railway: Use ${{ secret() }} to generate a random secure password
|
|
# For local: Set any password you want
|
|
SETUP_PASSWORD=your-secure-password-here
|
|
|
|
# Directory where openclaw stores configuration and state
|
|
# MUST point to /data on Railway (volume mount) for persistence
|
|
OPENCLAW_STATE_DIR=/data/.openclaw
|
|
|
|
# Directory where openclaw stores workspace files
|
|
# MUST point to /data on Railway (volume mount) for persistence
|
|
OPENCLAW_WORKSPACE_DIR=/data/workspace
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# RECOMMENDED VARIABLES
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Authentication token for the openclaw gateway and Control UI
|
|
# For Railway: Use ${{ secret() }} to generate a stable secret
|
|
# For local: Generate with: openssl rand -hex 32
|
|
# If not set, the wrapper will generate one (not ideal for production)
|
|
OPENCLAW_GATEWAY_TOKEN=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# OPTIONAL VARIABLES (Usually don't need to change)
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Port the wrapper server listens on
|
|
# Railway sets this automatically, usually to 8080
|
|
PORT=8080
|
|
|
|
# Internal port where the gateway listens (proxied by the wrapper)
|
|
# Default: 18789
|
|
INTERNAL_GATEWAY_PORT=18789
|
|
|
|
# Internal host for the gateway
|
|
# Default: 127.0.0.1
|
|
INTERNAL_GATEWAY_HOST=127.0.0.1
|
|
|
|
# Path to the openclaw configuration file
|
|
# Default: ${OPENCLAW_STATE_DIR}/openclaw.json
|
|
# Leave empty to use the default
|
|
OPENCLAW_CONFIG_PATH=
|
|
|
|
# Path to the openclaw CLI entry point
|
|
# Default: /usr/local/lib/node_modules/openclaw/dist/entry.js
|
|
# Leave empty unless using a custom build
|
|
OPENCLAW_ENTRY=/usr/local/lib/node_modules/openclaw/dist/entry.js
|
|
|
|
# Node.js executable to use
|
|
# Default: node
|
|
# Leave empty unless you need a specific node binary
|
|
OPENCLAW_NODE=node
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# RAILWAY-SPECIFIC VARIABLES (Set automatically by Railway)
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Git commit SHA - automatically set by Railway during deployment
|
|
# Do not set manually
|
|
# RAILWAY_GIT_COMMIT_SHA=
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# NOTES
|
|
# -----------------------------------------------------------------------------
|
|
# 1. For Railway deployment, you MUST have a Volume mounted at /data
|
|
# 2. Without the volume, configuration will be lost on every redeploy
|
|
# 3. After deployment, visit https://your-app.up.railway.app/setup to configure
|
|
# 4. The setup wizard will guide you through onboarding
|
|
# =============================================================================
|