# Contoh konfigurasi LiteSpeed — subdomain mjs.bdl.co.id
# Sesuaikan path dan port, lalu terapkan lewat LiteSpeed WebAdmin
# atau minta admin hosting menempelkan konfigurasi ini.

# 1. Node.js harus berjalan di background (PM2):
#    cd /path/to/maintenance-berita-acara
#    npm install --production
#    pm2 start ecosystem.config.cjs --env production
#    pm2 save

# 2. External processor — arahkan ke port Node.js lokal
extprocessor mjs_node {
  type                    proxy
  address                 127.0.0.1:8765
  maxConns                50
  initTimeout             60
  retryTimeout            0
  respBuffer              0
}

# 3. Context — semua request ke subdomain diteruskan ke Node
context / {
  type                    proxy
  handler                 mjs_node
  addDefaultCharset       off
}

# 4. SSL: aktifkan Let's Encrypt untuk mjs.bdl.co.id di panel hosting