Email SMTP Fix

This commit is contained in:
Koncept Kit
2025-12-07 16:59:04 +07:00
parent 79b617904b
commit 005c56b43d
11 changed files with 526 additions and 28 deletions

33
.env.example Normal file
View File

@@ -0,0 +1,33 @@
# Database Configuration
DATABASE_URL=postgresql://user:password@localhost:5432/membership_db
# JWT Authentication
JWT_SECRET=your-secret-key-change-this-in-production
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# SMTP Email Configuration (Port 465 - SSL/TLS)
SMTP_HOST=p.konceptkit.com
SMTP_PORT=465
SMTP_SECURE=false
SMTP_USER=koncept-kit/koncept-kit
SMTP_PASS=TOBYjqk3ZOWXUsEzlP1Kj3p1
SMTP_FROM=noreply@konceptkit.id
SMTP_FROM_NAME=LOAF Membership
# Alternative SMTP Configuration (Port 587 - STARTTLS)
# If using port 587, use these settings instead:
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=your-email@gmail.com
# SMTP_PASS=your-app-password
# SMTP_FROM=noreply@yourdomain.com
# SMTP_FROM_NAME=Your App Name
# Frontend URL
FRONTEND_URL=http://localhost:3000
# Stripe Configuration (for future payment integration)
# STRIPE_SECRET_KEY=sk_test_...
# STRIPE_WEBHOOK_SECRET=whsec_...