-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy path.env.example
More file actions
53 lines (45 loc) · 2.41 KB
/
Copy path.env.example
File metadata and controls
53 lines (45 loc) · 2.41 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
# Beehive Environment Variables Configuration
# Copy this file to .env and fill in your actual values
# ⚠️ Variables marked as REQUIRED must be set for the app to start
# ============================================================================
# REQUIRED: Database Configuration
# ============================================================================
MONGODB_URI=mongodb://localhost:27017/
DATABASE_NAME=beehive
FLASK_ENV=development
# ============================================================================
# REQUIRED: Security & Authentication
# ============================================================================
# Generate secure secrets using: python -c 'import secrets; print(secrets.token_hex(32))'
FLASK_SECRET_KEY=your_flask_secret_key_here_CHANGE_THIS
JWT_SECRET=your_jwt_secret_here_CHANGE_THIS
JWT_EXPIRE_HOURS=24
# ============================================================================
# REQUIRED: CORS Configuration (comma-separated allowed origins)
# ============================================================================
CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost:3000,http://127.0.0.1:3000
# ============================================================================
# OPTIONAL: Google OAuth Configuration
# ============================================================================
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
GOOGLE_API_KEY=your_google_api_key_here
REDIRECT_URI=http://localhost:5000/admin/login/callback
# ============================================================================
# OPTIONAL: Email (SMTP) Configuration
# ============================================================================
MAIL_SERVER=smtp.gmail.com
MAIL_PORT=587
MAIL_USE_TLS=true
MAIL_USERNAME=your_email@gmail.com
MAIL_PASSWORD=your_app_password_here
# ============================================================================
# OPTIONAL: Admin Configuration
# ============================================================================
ADMIN_EMAILS=admin@example.com,admin2@example.com
# ============================================================================
# Development Only (DO NOT use in production)
# ============================================================================
# Allows OAuth over HTTP in development - REMOVE in production
OAUTHLIB_INSECURE_TRANSPORT=1
ALLOWED_ROLES=user,admin