# Server Configuration PORT=5000 NODE_ENV=development # Database Configuration # Choose one: MongoDB, MySQL (XAMPP), or Supabase/PostgreSQL # MongoDB (Default) MONGODB_URI=mongodb://localhost:27017/yatsi-chatbot # MySQL/MariaDB (XAMPP) # Uncomment to use MySQL instead of MongoDB # DB_TYPE=mysql # DB_HOST=localhost # DB_PORT=3306 # DB_USER=root # DB_PASSWORD= # DB_NAME=yatsi_chatbot # Production: Supabase/PostgreSQL # DB_TYPE=supabase # DATABASE_URL=postgresql://postgres.[project-ref]:[password]@aws-[region].pooler.supabase.com:5432/postgres # DB_SSL=true # DB_POOL_MAX=10 # JWT Configuration JWT_SECRET=your-super-secret-jwt-key-here JWT_EXPIRES_IN=7d # LMS Integration - Universitas Yatsi Madani LMS_BASE_URL=https://mahasiswa.lms.uym.ac.id LMS_API_URL=https://mahasiswa.lms.uym.ac.id LMS_API_KEY=your-lms-api-key LMS_WEBHOOK_SECRET=your-webhook-secret LMS_COLLEGE_ID=041105 # Test Credentials (untuk testing scraper) LMS_TEST_USERNAME=your_lms_username LMS_TEST_PASSWORD=your_lms_password TEST_EMAIL=your_chatbot_email@example.com TEST_PASSWORD=your_chatbot_password # API Base URL (untuk test script) API_BASE_URL=http://localhost:5000 # AI/NLP Configuration OPENAI_API_KEY=your-openai-api-key OPENAI_MODEL=gpt-3.5-turbo OPENAI_MAX_TOKENS=1000 # Alternative AI Services GOOGLE_DIALOGFLOW_PROJECT_ID=your-dialogflow-project GOOGLE_DIALOGFLOW_KEY_FILE=path/to/service-account.json # Email Configuration (untuk notifikasi) SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=your-email@gmail.com SMTP_PASS=your-app-password # Redis (untuk caching dan session) REDIS_URL=redis://localhost:6379 # File Upload MAX_FILE_SIZE=10485760 UPLOAD_PATH=./uploads # Rate Limiting RATE_LIMIT_WINDOW_MS=900000 RATE_LIMIT_MAX_REQUESTS=100 # Logging LOG_LEVEL=info LOG_FILE=./logs/app.log # CORS CORS_ORIGIN=http://localhost:3000 # Security BCRYPT_ROUNDS=12 SESSION_SECRET=your-session-secret