-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (26 loc) · 2.13 KB
/
.env.example
File metadata and controls
31 lines (26 loc) · 2.13 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
# ════════════════════════════════════════════════════════════════════════════
# .env.example — SAFE TO COMMIT (no real secrets)
#
# Copy to .env, fill in real values, and NEVER commit .env:
# cp .env.example .env
#
# Push all vars to Railway in one shot:
# railway variables import .env
# ════════════════════════════════════════════════════════════════════════════
SPRING_PROFILES_ACTIVE=prod
# ── Neon / PostgreSQL ────────────────────────────────────────────────────────
# Format: jdbc:postgresql://<host>/<db>?sslmode=require
DB_URL=jdbc:postgresql://your-neon-host/neondb?sslmode=require
DB_USERNAME=your_db_user
DB_PASSWORD=your_db_password
# ── JWT ───────────────────────────────────────────────────────────────────────
# Generate a strong 512-bit secret:
# openssl rand -hex 64
JWT_SECRET=replace_with_a_long_random_hex_string_at_least_64_chars
# ── AI / Groq ─────────────────────────────────────────────────────────────────
# Get a free key at https://console.groq.com → API Keys (starts with gsk_)
OPENAI_API_KEY=gsk_your_groq_api_key_here
AI_BASE_URL=https://api.groq.com/openai/v1/chat/completions
AI_MODEL=llama-3.3-70b-versatile
# ── CORS ──────────────────────────────────────────────────────────────────────
ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000,https://your-app.vercel.app