hMarket Trae ilk versiyon
This commit is contained in:
53
backend/.env.example
Normal file
53
backend/.env.example
Normal file
@@ -0,0 +1,53 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user