-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (56 loc) · 2.14 KB
/
Copy path.env.example
File metadata and controls
66 lines (56 loc) · 2.14 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
# Breakup Stories Backend - Environment Variables Template
# Copy this file to .env and fill in your actual values
# DO NOT commit .env file to git
# ============================================
# Database Configuration
# ============================================
SPRING_DATA_MONGODB_URI=mongodb://localhost:27017/breakup_stories
# OR use individual settings:
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_DATABASE=breakup_stories
SPRING_DATA_MONGODB_AUTHENTICATION_DATABASE=admin
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# ============================================
# Security Configuration
# ============================================
# JWT Secret (use a strong random key - generate with: openssl rand -base64 32)
JWT_SECRET=
# Admin Configuration
ADMIN_EMAIL=your-admin@example.com
ADMIN_TOTP_SECRET=
# ============================================
# Email Configuration (Gmail SMTP)
# ============================================
BREAKUP_MAIL_HOST=smtp.gmail.com
BREAKUP_MAIL_PORT=587
BREAKUP_MAIL_USERNAME=your-email@gmail.com
BREAKUP_MAIL_PASSWORD=your-app-specific-password
# ============================================
# Cloudinary Configuration
# ============================================
BREAKUP_CLOUDINARY_CLOUD_NAME=your-cloud-name
BREAKUP_CLOUDINARY_API_KEY=your-api-key
BREAKUP_CLOUDINARY_API_SECRET=your-api-secret
# ============================================
# Google Cloud Configuration
# ============================================
GOOGLE_CLOUD_PROJECT_ID=breakup-stories-464019
GOOGLE_CLOUD_CREDENTIALS_PATH=classpath:breakup-stories-464019-095fa901b79d.json
# ============================================
# OpenAI Configuration
# ============================================
OPENAI_API_KEY=sk-your-openai-api-key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o
OPENAI_MAX_TOKENS=2048
OPENAI_TEMPERATURE=0.7
# ============================================
# Application Configuration
# ============================================
SPRING_THREADS_VIRTUAL_ENABLED=true
# MongoDB Read Preference (primary, primaryPreferred, secondary, secondaryPreferred, nearest)
SPRING_DATA_MONGODB_READ_PREFERENCE=primary