module.exports = {
  // === KREDENSIAL API ===
  username: "ismailsult",
  auth_token: "2302554:MqGE9ZFeNmBakH8tKiAvjVQl0pf6yJzL",
  app_reg_id: "cuh1R_VfR4SaTuvLfNaFVL",
  phone_uuid: "cuh1R_VfR4SaTuvLfNaFVL",
  phone_model: "CPH2179",
  phone_android_version: "10",
  app_version_code: "250918",
  app_version_name: "25.09.18",
  ui_mode: "light",

  // === POLLING SETTINGS ===
  // Interval normal (detik) — saat tidak ada perubahan
  normal_interval_sec: 600,

  // Interval cepat (detik) — saat ada perubahan terdeteksi
  fast_interval_sec: 1,

  // Durasi polling cepat setelah perubahan terdeteksi (detik)
  fast_duration_sec: 10,

  // === SERVER ===
  // cPanel assign port via env var PORT, fallback 5000 untuk lokal/Replit
  port: parseInt(process.env.PORT) || 5000,

  // === PROXY (opsional) ===
  // Isi jika perlu proxy, contoh: "http://user:pass@1.2.3.4:8080"
  // Bisa juga set env var HTTPS_PROXY / HTTP_PROXY
  proxy_url: process.env.HTTPS_PROXY || process.env.HTTP_PROXY || "",

  // Mode koneksi: "proxy" | "direct" | "auto"
  // "proxy"  = selalu pakai proxy (default)
  // "direct" = tanpa proxy
  // "auto"   = coba direct dulu, kalau gagal pakai proxy
  proxy_mode: "proxy",
};
