-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
64 lines (54 loc) · 2.64 KB
/
env.example
File metadata and controls
64 lines (54 loc) · 2.64 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
# =============================================================================
# CodeCrew Environment Configuration
# =============================================================================
# Copy this file to .env and fill in your actual values
# Never commit the .env file to version control
# =============================================================================
# Database Configuration
# =============================================================================
# PostgreSQL Database Settings
POSTGRES_DB=codecrew
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_secure_password_here
DATABASE_URL=postgresql://postgres:your_secure_password_here@db:5432/codecrew
# =============================================================================
# JWT Authentication
# =============================================================================
# Generate a secure secret key using: openssl rand -hex 32
SECRET_KEY=your_secret_key_here_generate_with_openssl_rand_hex_32
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=60
# =============================================================================
# OpenAI API Configuration (for AI Quiz Generation)
# =============================================================================
# Get your API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=your_openai_api_key_here
# =============================================================================
# Frontend Configuration
# =============================================================================
# API URL for frontend to connect to backend
VITE_API_URL=http://localhost:8000
# =============================================================================
# Development Settings
# =============================================================================
# Set to true for development, false for production
DEBUG=false
# CORS settings for frontend-backend communication
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# =============================================================================
# Docker Configuration
# =============================================================================
# Database port mapping (optional, for external access)
DB_PORT=5432
# Backend port mapping
BACKEND_PORT=8000
# Frontend port mapping
FRONTEND_PORT=5173
# =============================================================================
# Security Notes
# =============================================================================
# 1. Generate a secure SECRET_KEY: openssl rand -hex 32
# 2. Use strong passwords for database
# 3. Never commit this file to version control
# 4. In production, use HTTPS URLs
# 5. Rotate API keys regularly