HTTP gateway

Put several services behind one domain.

An HTTP gateway takes one web address and sends each request to a different service based on the path. /api goes to your API, /auth to your login service, and everything else to your frontend.

1
Domain
By path
Routing
HTTPS
Included
Live
Route changes

What you get

One address for your whole app.

  • One domain, one certificate

    Configure DNS once. Your browser code calls the same origin, so there are no cross-origin problems.

  • Route by path

    Send each path prefix, like /api or /auth, to the service that should answer it.

  • Strip the prefix

    Choose whether the service sees /api/users or just /users, so it does not need to know where it is mounted.

  • Priority for overlaps

    When /api and /api/v2 both match, the route with the higher priority wins.

  • Your own domain

    The gateway gets an address straight away. Add your own domain like any other service.

  • Changes without redeploying

    Add, edit or remove routes and they apply without redeploying the services behind them.

How it works

Set up your routes.

  1. Create a gateway

    Give it a name. It gets a web address at once.

  2. Add routes

    For each path prefix, pick a service in the same environment and the port it listens on.

  3. Add a catch-all

    A route on / with the lowest priority sends everything else to your frontend.

routes
app.example.com/api/...    →  api    (strip /api)
app.example.com/auth/...   →  auth   (strip /auth)
app.example.com/...        →  web

Without a gateway, each of these services would need its own domain.

Pricing

No size to pay for.

The gateway has no vCPU or memory of its own. You pay for the services behind it and for outgoing traffic, at the usual rates.

  • The gatewayNo chargeNo vCPU or memory to choose
  • Outgoing traffic₦50 / GBTo any network
  • Outgoing traffic, zerodata₦1,000 / GBTo users on MTN, Airtel, Glo, T2 and Safaricom
  • Incoming trafficFreeFrom anywhere

What you do pay for

The services the gateway sends requests to, billed as normal.

Estimate your cost

Questions

Common questions

What can a route point to?
Any Docker service in the same environment.
Does a service need its own domain too?
No. It can be reachable only through the gateway. It can also keep its own address if you want both.
Which route wins when two match?
The one with the higher priority. Give more specific paths a higher priority.
What happens if I delete the gateway?
Its address stops working. The services behind it keep running, along with any addresses of their own.

Put your app on
one domain.

Add a gateway and route by path.