-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (42 loc) · 1.76 KB
/
Copy path.env.example
File metadata and controls
55 lines (42 loc) · 1.76 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
# ============================================
# MiniCode Environment Variables
# Copy this file and fill in your values:
# cp .env.example backend/.env
# cp .env.example frontend/.env.local (only NEXT_PUBLIC_ vars)
# ============================================
# === Database (PostgreSQL) ===
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/minicode
# === Redis & Celery ===
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/1
# === GitHub OAuth App ===
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_TOKEN=your_github_personal_access_token
# === Google Gemini AI ===
GEMINI_API_KEY=your_gemini_api_key
# === JWT Authentication ===
JWT_SECRET=generate_a_random_32_char_string_here
# === CORS (comma-separated allowed origins) ===
CORS_ORIGINS=https://your-frontend-url.onrender.com
# === Server Config ===
WEB_CONCURRENCY=4
RESEND_API_KEY=your_resend_api_key
# === Token Encryption ===
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
FERNET_KEY=your_fernet_key_here
# === SMTP Email (for sending verification emails) ===
SMTP_EMAIL=your_smtp_email@example.com
SMTP_PASSWORD=your_smtp_password_or_app_password
# === Google OAuth (for faculty/admin institutional login) ===
GOOGLE_CLIENT_ID=your_google_oauth_client_id
GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret
# === Celery Result Backend ===
# Optional: defaults to same as REDIS_URL if not set
CELERY_RESULT_BACKEND=redis://localhost:6379/2
# === Frontend (prefix with NEXT_PUBLIC_ for client-side access) ===
NEXT_PUBLIC_GITHUB_CLIENT_ID=your_github_client_id
NEXT_PUBLIC_API_URL=http://localhost:8000
# === Environment ===
# Options: development, production
ENVIRONMENT=development