mirror of
https://github.com/KLogicHQ/nats-console.git
synced 2026-10-08 22:21:15 +00:00
35 lines
763 B
Bash
35 lines
763 B
Bash
# Server
|
|
NODE_ENV=development
|
|
PORT=3001
|
|
HOST=0.0.0.0
|
|
|
|
# PostgreSQL
|
|
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=nats_console
|
|
CLICKHOUSE_PASSWORD=nats_console_dev
|
|
|
|
# NATS (internal for job queues)
|
|
NATS_URL=nats://localhost:4222
|
|
|
|
# JWT (generate with: openssl rand -base64 32)
|
|
JWT_SECRET=your-super-secret-jwt-key-at-least-32-chars
|
|
JWT_ACCESS_EXPIRY=15m
|
|
JWT_REFRESH_EXPIRY=7d
|
|
|
|
# Encryption (generate with: openssl rand -base64 32)
|
|
ENCRYPTION_KEY=your-super-secret-encryption-key-32
|
|
|
|
# CORS
|
|
CORS_ORIGIN=http://localhost:3000
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_MAX=100
|
|
RATE_LIMIT_WINDOW=60000
|