mirror of
https://github.com/KLogicHQ/nats-console.git
synced 2026-10-14 00:30:16 +00:00
add api, web, worker.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user