add api, web, worker.

This commit is contained in:
Fizer Khan
2025-12-04 21:46:20 +05:30
parent ede3b87d8c
commit 22c1bc1134
66 changed files with 8234 additions and 0 deletions
+34
View File
@@ -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