mirror of
https://github.com/KLogicHQ/nats-console.git
synced 2026-10-06 13:12:09 +00:00
70 lines
2.9 KiB
Bash
70 lines
2.9 KiB
Bash
# =============================================================================
|
|
# NATS Console - Environment Variables
|
|
# =============================================================================
|
|
# Copy this file to .env and adjust values as needed.
|
|
# For production, ensure you use strong random secrets.
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
# Application
|
|
# =============================================================================
|
|
NODE_ENV=development
|
|
LOG_LEVEL=info
|
|
|
|
# =============================================================================
|
|
# API Server
|
|
# =============================================================================
|
|
PORT=3001
|
|
HOST=0.0.0.0
|
|
|
|
# =============================================================================
|
|
# Web Frontend
|
|
# =============================================================================
|
|
NEXT_PUBLIC_API_URL=http://localhost:3001/api/v1
|
|
NEXT_PUBLIC_WS_URL=ws://localhost:3001/ws
|
|
|
|
# =============================================================================
|
|
# PostgreSQL
|
|
# =============================================================================
|
|
POSTGRES_USER=nats_console
|
|
POSTGRES_PASSWORD=nats_console_dev
|
|
POSTGRES_DB=nats_console
|
|
DATABASE_URL=postgresql://nats_console:nats_console_dev@localhost:5432/nats_console
|
|
|
|
# =============================================================================
|
|
# Redis
|
|
# =============================================================================
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# =============================================================================
|
|
# ClickHouse
|
|
# =============================================================================
|
|
CLICKHOUSE_URL=http://localhost:8123
|
|
CLICKHOUSE_DATABASE=nats_console
|
|
CLICKHOUSE_USER=default
|
|
CLICKHOUSE_PASSWORD=
|
|
|
|
# =============================================================================
|
|
# NATS
|
|
# =============================================================================
|
|
NATS_URL=nats://localhost:4222
|
|
|
|
# =============================================================================
|
|
# Authentication (IMPORTANT: Change in production!)
|
|
# =============================================================================
|
|
# Generate a secure random string: openssl rand -hex 32
|
|
JWT_SECRET=change-me-in-production-use-secure-random-string
|
|
JWT_EXPIRES_IN=15m
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
# =============================================================================
|
|
# Rate Limiting
|
|
# =============================================================================
|
|
RATE_LIMIT_MAX=100
|
|
RATE_LIMIT_WINDOW=60000
|
|
|
|
# =============================================================================
|
|
# CORS (comma-separated list of allowed origins)
|
|
# =============================================================================
|
|
CORS_ORIGIN=http://localhost:3000
|