Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 51 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,14 +1,54 @@
# .env.example - copy to .env and fill values
POSTGRES_USER=vighn
POSTGRES_PASSWORD=vighnpass
POSTGRES_DB=vighnview
POSTGRES_PORT=5432
# Database Configuration
DATABASE_URL=postgresql://username:password@localhost:5432/vighnview
REDIS_URL=redis://localhost:6379

# Backend server config
BACKEND_PORT=5000
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-here
JWT_REFRESH_SECRET=your-super-secret-refresh-key-here
JWT_EXPIRES_IN=24h
JWT_REFRESH_EXPIRES_IN=7d

# Google Cloud Vision API key (DON'T commit)
AI_API_KEY=YOUR_GOOGLE_VISION_API_KEY
# File Storage
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
AWS_REGION=us-east-1
AWS_S3_BUCKET=vighnview-uploads

# Used by frontend to call backend in dev or production
NEXT_PUBLIC_BACKEND_URL=http://localhost:5000
# Google Cloud (Alternative to AWS)
GOOGLE_CLOUD_PROJECT_ID=your-project-id
GOOGLE_CLOUD_STORAGE_BUCKET=vighnview-uploads

# Maps API
GOOGLE_MAPS_API_KEY=your-google-maps-api-key

# AI/ML Services
AI_SERVICE_URL=http://localhost:5000
TENSORFLOW_MODEL_PATH=./models/issue-detection-model

# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password

# Push Notifications
FCM_SERVER_KEY=your-fcm-server-key
FCM_PROJECT_ID=your-fcm-project-id

# Development
NODE_ENV=development
PORT=3000
FRONTEND_URL=http://localhost:3001
MOBILE_APP_URL=http://localhost:3000

# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100

# Security
BCRYPT_ROUNDS=12
CORS_ORIGIN=http://localhost:3001,http://localhost:3000

# Monitoring
SENTRY_DSN=your-sentry-dsn
LOG_LEVEL=info
Loading