TKK_E32231503/backend/.env.example

38 lines
1.0 KiB
Plaintext

# Server Configuration
PORT=3000
MQTT_PORT=1883
WS_PORT=8883
# Node Environment
NODE_ENV=production
# =====================================================
# MySQL Database Configuration
# =====================================================
# Option 1: Use DATABASE_URL (Railway format)
# DATABASE_URL=mysql://user:password@host:port/database
# Option 2: Use MYSQL_URL (Alternative format)
# MYSQL_URL=mysql://user:password@host:port/database
# Option 3: Use Railway MySQL Plugin variables
# MYSQLHOST=your-host.railway.app
# MYSQLPORT=3306
# MYSQLUSER=root
# MYSQLPASSWORD=your_password
# MYSQLDATABASE=railway
# Option 4: Use custom variables (for local development)
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=pengering_ikan
# =====================================================
# NOTES:
# - Railway automatically provides DATABASE_URL or MYSQL_* variables
# - You don't need to set these manually in Railway
# - For local development, use Option 4 (DB_* variables)
# =====================================================