-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
84 lines (68 loc) · 2.12 KB
/
.env.example
File metadata and controls
84 lines (68 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# ================================
# ProWidget Environment Variables
# ================================
# Copy this file to .env and update values
# ================================
# Environment
# ================================
NODE_ENV=development
# ================================
# Database (PostgreSQL)
# ================================
POSTGRES_USER=pwx_user
POSTGRES_PASSWORD=pwx_secure_password_change_me
POSTGRES_DB=prowidget
DB_PORT=5432
# Connection string for applications
DATABASE_URL=postgresql://pwx_user:pwx_secure_password_change_me@localhost:5432/prowidget?schema=public
# ================================
# Backend API
# ================================
BACKEND_PORT=3000
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-minimum-32-characters-change-in-production
JWT_EXPIRES_IN=7d
JWT_REFRESH_EXPIRES_IN=30d
# CORS (comma-separated origins)
CORS_ORIGINS=http://localhost:3001,http://localhost:5173
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX=100
# Logging
LOG_LEVEL=info
# ================================
# Admin Panel
# ================================
ADMIN_PORT=3001
NEXT_PUBLIC_API_URL=http://localhost:3000
# ================================
# XML Parser / Scheduler
# ================================
# Cron expression for feed sync (default: every 15 minutes)
SYNC_CRON_SCHEDULE=*/15 * * * *
# Max concurrent feed syncs
SYNC_CONCURRENCY=3
# Feed fetch timeout (ms)
FEED_TIMEOUT=30000
# ================================
# Redis (Optional)
# ================================
REDIS_PORT=6379
REDIS_URL=redis://localhost:6379
# ================================
# pgAdmin (Development only)
# ================================
PGADMIN_EMAIL=admin@prowidget.com
PGADMIN_PASSWORD=admin123
PGADMIN_PORT=5050
# ================================
# CDN Configuration
# ================================
CDN_URL=https://cdn.prowidget.com
# ================================
# Security Notes
# ================================
# - Always change default passwords in production
# - Use strong, unique JWT_SECRET (min 32 chars)
# - Restrict CORS_ORIGINS to your domains only
# - Never commit .env file to version control