80 lines
1.8 KiB
Plaintext
80 lines
1.8 KiB
Plaintext
# Application
|
|
NODE_ENV=development
|
|
PORT=5000
|
|
API_VERSION=v1
|
|
BASE_URL=http://localhost:5000
|
|
|
|
# Database
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=re_workflow_db
|
|
DB_USER=postgres
|
|
DB_PASSWORD=postgres
|
|
DB_SSL=false
|
|
DB_POOL_MIN=2
|
|
DB_POOL_MAX=10
|
|
|
|
# SSO Configuration (Frontend-handled)
|
|
# Backend only needs JWT secrets for token validation
|
|
JWT_SECRET=your_jwt_secret_key_here_min_32_chars
|
|
JWT_EXPIRY=24h
|
|
REFRESH_TOKEN_SECRET=your_refresh_token_secret_here
|
|
REFRESH_TOKEN_EXPIRY=7d
|
|
|
|
# Okta/Auth0 Configuration (for backend token exchange in localhost)
|
|
OKTA_DOMAIN=https://dev-830839.oktapreview.com
|
|
OKTA_CLIENT_ID=0oa2j8slwj5S4bG5k0h8
|
|
OKTA_CLIENT_SECRET=your_okta_client_secret_here
|
|
|
|
# Session
|
|
SESSION_SECRET=your_session_secret_here_min_32_chars
|
|
|
|
# Cloud Storage (GCP)
|
|
GCP_PROJECT_ID=re-workflow-project
|
|
GCP_BUCKET_NAME=re-workflow-documents
|
|
GCP_KEY_FILE=./config/gcp-key.json
|
|
|
|
# Email Service (Optional)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_SECURE=false
|
|
SMTP_USER=notifications@royalenfield.com
|
|
SMTP_PASSWORD=your_smtp_password
|
|
EMAIL_FROM=RE Workflow System <notifications@royalenfield.com>
|
|
|
|
# AI Service (for conclusion generation)
|
|
AI_API_KEY=your_ai_api_key
|
|
AI_MODEL=gpt-4
|
|
AI_MAX_TOKENS=500
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FILE_PATH=./logs
|
|
|
|
# CORS
|
|
CORS_ORIGIN=http://localhost:3000
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# File Upload
|
|
MAX_FILE_SIZE_MB=10
|
|
ALLOWED_FILE_TYPES=pdf,doc,docx,xls,xlsx,ppt,pptx,jpg,jpeg,png,gif
|
|
|
|
# TAT Monitoring
|
|
TAT_CHECK_INTERVAL_MINUTES=30
|
|
TAT_REMINDER_THRESHOLD_1=50
|
|
TAT_REMINDER_THRESHOLD_2=80
|
|
|
|
# Redis (for TAT Queue)
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# TAT Test Mode (for development/testing)
|
|
# When enabled, 1 TAT hour = 1 minute (for faster testing)
|
|
# Example: 48-hour TAT becomes 48 minutes
|
|
TAT_TEST_MODE=false
|
|
|
|
# Working Hours Configuration (optional)
|
|
WORK_START_HOUR=9
|
|
WORK_END_HOUR=18 |