D
Engineering

External Services

Map of external service URLs — Go backend, WhatsApp engine, bot engine. URLs are not centralised, hardcoded per controller.

dazoapp depends on 3 external services. URLs are not centralised — there are two sources that must be kept in sync.

Key points (see Indonesian version for details):

  • Frontend: resources/js/global.js (gitignored) with env selector
  • Backend: hardcoded per controller with if (env == production) pattern in ~20 controllers
  • Production host for WhatsApp engine is inconsistent: engine.dazo.id vs engine-wa.dazo.id
  • Two ports for the same service: Go backend (8081/9091), Bot engine (1212/1313)
  • Only one service URL moved to config: ENGINE_BOT_URL in config/services.php:47
  • When calling a service, find a controller that already calls it and follow its pattern