-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
53 lines (49 loc) · 1.76 KB
/
.env.example
File metadata and controls
53 lines (49 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
# ==========================================
# FEEDBACK WIDGET - ENVIRONMENT CONFIGURATION
# ==========================================
#
# 🚀 QUICK START (Docker):
# docker-compose up -d
# → Database, migrations, and API start automatically!
#
# 📝 FOR DEVELOPMENT (without Docker):
# 1. Copy this file to api/.env and web/.env
# 2. Fill in your values
# 3. Run: npm install && npm run dev (in each folder)
#
# 🏭 FOR PRODUCTION:
# See .env.production.example or DEPLOYMENT.md
# ==========================================
# ==========================================
# REQUIRED: Security Configuration
# ==========================================
# Generate a secure 64-char hex key:
# node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# This is used to encrypt sensitive data like API keys
ENCRYPTION_KEY=dev-key-change-in-production-for-security
# ==========================================
# OPTIONAL: AI PROVIDER (Widget works without AI!)
# ==========================================
# Set to: MOONSHOT, ANTHROPIC, or leave as NONE
# Get Moonshot key: https://platform.moonshot.ai
# Get Anthropic key: https://console.anthropic.com
AI_PROVIDER=NONE
AI_API_KEY=
AI_MODEL=kimi-k2.5
# ==========================================
# OPTIONAL: EMAIL / SMTP (for notifications)
# ==========================================
# Sign up for free at https://mailtrap.io for development
SMTP_HOST=sandbox.smtp.mailtrap.io
SMTP_PORT=2525
SMTP_USER=
SMTP_PASS=
ADMIN_EMAIL=admin@example.com
ENABLE_EMAIL_NOTIFICATIONS=false
# ==========================================
# DOCKER ONLY: Database Settings
# (Only used by docker-compose.yml)
# ==========================================
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=feedback_widget