-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
109 lines (93 loc) · 4.31 KB
/
.env.example
File metadata and controls
109 lines (93 loc) · 4.31 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# AutoPWN Environment Configuration
# Copy this file to .env.local and adjust as needed
# =============================================================================
# NODE ENVIRONMENT
# =============================================================================
NODE_ENV=development
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# PostgreSQL database connection
DATABASE_URL=postgresql://postgres:password@localhost:5432/autopwn_development
# Alternative database configurations for different environments
# DATABASE_URL=postgresql://postgres:password@localhost:5432/autopwn_test
# DATABASE_URL=postgresql://postgres:password@localhost:5432/autopwn_production
# Database credentials
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_DB=autopwn_development
# =============================================================================
# REDIS CONFIGURATION
# =============================================================================
# Redis connection for job queues
REDIS_URL=redis://localhost:6379
REDIS_HOST=localhost
REDIS_PORT=6379
# =============================================================================
# AUTHENTICATION
# =============================================================================
# Generate these with: openssl rand -base64 32
AUTH_SECRET=your-secret-key-here-min-32-chars-long-please
JWT_SECRET=your-jwt-secret-here-min-32-chars-long-please
# Auth URLs
AUTH_URL=http://localhost:3001/auth
FRONTEND_URL=http://localhost:3000
# =============================================================================
# API CONFIGURATION
# =============================================================================
# API server port (backend)
PORT=3001
API_BASE_URL=http://localhost:3001
# =============================================================================
# WEB CONFIGURATION
# =============================================================================
# Web server port (frontend)
# Note: This is for the Next.js development server
NEXT_PUBLIC_API_URL=http://localhost:3001
NEXT_PUBLIC_APP_URL=http://localhost:3000
# =============================================================================
# FILE UPLOAD CONFIGURATION
# =============================================================================
# Upload directory and limits
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=100MB
# =============================================================================
# BACKGROUND JOBS
# =============================================================================
# Job processing configuration
DEFAULT_JOB_TIMEOUT=300000
MAX_CONCURRENT_JOBS=5
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# CORS settings
CORS_ORIGIN=http://localhost:3000
# =============================================================================
# TESTING CONFIGURATION
# =============================================================================
# Test environment settings
E2E_ADMIN_EMAIL=admin@autopwn.local
E2E_ADMIN_PASSWORD=admin123
# =============================================================================
# DEVELOPMENT PROFILE (for Docker Compose)
# =============================================================================
# When using Docker Compose, these will be automatically set:
# NODE_ENV=development
# DATABASE_URL=postgresql://postgres:password@database:5432/autopwn_development
# REDIS_URL=redis://redis:6379
# REDIS_HOST=redis
# REDIS_PORT=6379
# =============================================================================
# PRODUCTION PROFILE (for Docker Compose)
# =============================================================================
# When using production profile, use:
# NODE_ENV=production
# DATABASE_URL=postgresql://postgres:password@database:5432/autopwn_production
# REDIS_URL=redis://redis:6379
# =============================================================================
# TEST PROFILE (for Docker Compose)
# =============================================================================
# When using test profile, use:
# NODE_ENV=test
# DATABASE_URL=postgresql://postgres:password@database:5432/autopwn_test
# REDIS_URL=redis://redis:6379