Files
hMarket/backend/.env.example

53 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HMarket Backend Environment Variables
# Sunucu Ayarları
PORT=7001
NODE_ENV=development
# Veritabanı Bağlantısı (MariaDB)
DATABASE_URL="mysql://username:password@localhost:3306/hmarket"
# JWT Ayarları
JWT_SECRET=your-super-secret-jwt-key-here
JWT_EXPIRES_IN=7d
# CORS Ayarları
CORS_ORIGIN=http://localhost:7000
FRONTEND_URL=http://localhost:3000
# Google OAuth Ayarları
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:7001/api/auth/google/callback
# Session Ayarları
SESSION_SECRET=your-session-secret-key
# Firebase Cloud Messaging (Push Notifications)
FIREBASE_PROJECT_ID=your-firebase-project-id
FIREBASE_PRIVATE_KEY_ID=your-private-key-id
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nyour-private-key-here\n-----END PRIVATE KEY-----\n"
FIREBASE_CLIENT_EMAIL=your-service-account@your-project.iam.gserviceaccount.com
FIREBASE_CLIENT_ID=your-client-id
FIREBASE_AUTH_URI=https://accounts.google.com/o/oauth2/auth
FIREBASE_TOKEN_URI=https://oauth2.googleapis.com/token
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# File Upload
MAX_FILE_SIZE=5242880
UPLOAD_PATH=uploads/
# Email Ayarları (Davet linkleri için)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
# Redis (Opsiyonel - Session ve Cache için)
REDIS_URL=redis://localhost:6379
# Logging
LOG_LEVEL=info