Skip to content

Architectuur & Schaalbaarheid

Componenten

  • Frontend
    • Viewer (Nuxt) op poort 3001.
    • AdminPortal (Nuxt) op poort 3002.
    • NGINX Reverse Proxy op poort 80 & 443.
    • Reverse Proxy:
      • /127.0.0.1:3001/
      • /admin/127.0.0.1:3002/
      • /api/v1/<BACKEND_IP>:3000/api/v1 (Staging: 10.129.80.64)
  • Backend
    • API (Express) op poort 3000.
    • Database (PostgreSQL) op poort 5432 (In Docker als 3003).

Netwerk & Security

Volgende poorten werden geopened via FirewallD om toegang tot de Applicaties te verkrijgen:

  • Frontend: HTTP (80) & HTTPS (443).
  • Backend: HTTP (80) & HTTPS (443).

Dit word geconfigureerd in Ansible in roles/proxy/tasks/main.yml & roles/backend/api/tasks/main.yml

Schaalbaarheid

  • Verticaal (↕️): VM's Upgraden (CPU/RAM/Storage)
  • Horizontaal (↔️): Toevoegen van extra VM’s en deze als Hosts in Ansible Inventory toevoegen
    • Inventories zijn te vinden bij Ansible onder inventory/dev/hosts.yml, inventory/staging/hosts.yml & inventory/production/hosts.yml

Fire Management System Documentation