Files
membership-be/.env.example
2025-12-10 17:52:32 +07:00

51 lines
1.5 KiB
Plaintext

# 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_...
# Cloudflare R2 Storage Configuration
R2_ACCOUNT_ID=your_r2_account_id
R2_ACCESS_KEY_ID=your_r2_access_key_id
R2_SECRET_ACCESS_KEY=your_r2_secret_access_key
R2_BUCKET_NAME=loaf-membership-storage
R2_PUBLIC_URL=https://your-r2-public-url.com
# Storage Limits (in bytes)
MAX_STORAGE_BYTES=10737418240 # 10GB default
MAX_FILE_SIZE_BYTES=52428800 # 50MB per file default
# Microsoft Calendar API Configuration
MS_CALENDAR_CLIENT_ID=your_microsoft_client_id
MS_CALENDAR_CLIENT_SECRET=your_microsoft_client_secret
MS_CALENDAR_TENANT_ID=your_microsoft_tenant_id
MS_CALENDAR_REDIRECT_URI=http://localhost:8000/membership/api/calendar/callback