forked from SpurgenO1/-Service-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
27 lines (21 loc) · 853 Bytes
/
Copy path.env.example
File metadata and controls
27 lines (21 loc) · 853 Bytes
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
JWT_SECRET=change-me-to-a-long-random-string
# Use either name (db.js accepts both)
MONGODB_URI=mongodb://127.0.0.1:27017/sermng
PORT=3000
# Optional: public URL used in password-reset emails
PUBLIC_APP_URL=http://localhost:3000
# Optional: set true behind a reverse proxy so rate limiting uses client IP
TRUST_PROXY=false
# Optional: SMTP for password reset emails (if unset, reset link is logged to console)
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=
# SMTP_PASS=
# SMTP_FROM=noreply@example.com
# Local testing only: API returns reset token in JSON (never enable in production)
# DEV_RETURN_RESET_TOKEN=true
# OpenAI — optional; ticket creation still works without it
# OPENAI_API_KEY=sk-...
# OPENAI_MODEL=gpt-4o-mini
# React dev (Vite) is allowed in server.js CORS + Socket.IO automatically on ports 5173