HubSEOhubseoDocs
Platform

How HubSEO Runs

The production platform behind hubseo.dev. One Azure virtual machine in the East US region, self-hosted database, off-site backups.

This page describes how the SaaS you use is actually operated. No infrastructure details you'd need to exploit, just the honest topology.

One host

Production runs on a single Azure virtual machine in the East US region (United States). The website, the dashboard, checkout, the audit engine, the self-hosted database and the transactional mail service all run as containers on that one host behind a TLS-terminating reverse proxy (Caddy). There is no separate edge platform: hubseo.dev resolves directly to the machine.

Rendering a real browser per audit is heavy by nature, so the measurement work runs in its own pool of containers, separate from the web process, and audit capacity scales by adding sidecar replicas rather than by cutting corners inside a run.

The containers

Next.js

Web App

Marketing pages, audit console, dashboard, checkout, REST API and these docs, from one release image.

Lab Engine

Lighthouse Pool

Headless Chromium sidecars that run the mobile (Moto G Power) and desktop lab passes in isolation.

Crawl

Site Crawler

Fetches and parses audited pages with SSRF-guarded, DNS-pinned requests.

Self-hosted

Supabase (Postgres)

Auth, REST and the Postgres database with Row-Level Security, reachable only over the internal network.

TLS Edge

Caddy

Automated TLS termination and host routing; overwrites client-IP headers so quotas cannot be spoofed.

Self-hosted

Transactional Mail

Self-hosted mail service for receipts, alerts and audit completions.

Scheduled work (report recovery, health monitoring, daily jobs) runs from pg_cron inside the database and calls the app's cron routes with a shared secret; there is no third-party scheduler.

The database

Self-hosted Supabase (Postgres) on the same virtual machine, with the web app talking to it over an internal network only. Row-Level Security with tenant-scoped policies is enforced at the database layer: see Security.

Backups

A nightly Postgres dump is kept on the host and one copy of each nightly set is uploaded to Azure Blob Storage (private container, TLS only, 30-day lifecycle). A weekly automated restore drill restores the latest dump into a scratch database and reports the result.

The docs you are reading

These docs are compiled into the same web app and served at hubseo.dev/docs; there is no separate docs host.

Release discipline

  • Every change to production passes typecheck, lint, a zero-fixture guard that fails the build on simulated data, and the full test suite.
  • Merges to the main branch are deployed by a GitHub Actions runner on the host: the release image is built, started as a candidate, its environment is verified, its health endpoint must report the new commit, and only then does it replace the live container. Incidents are handled by rolling back to the previous release image first, investigation second.
  • Runtime health is exposed at /api/health, which reports the running release so a served page can always be tied to a commit.

Data location

Production data (database, audit artefacts, mail, backups) is stored in the United States: the virtual machine runs in Azure's East US region and backups are copied to Azure Blob Storage. See Data control.