Meritt Get started

All platforms

Affiliate tracking at your hosting provider

At DigitalOcean, three situations, three answers. A droplet is your own server: the rule goes on its web server. App Platform does not relay a path outside the app: it needs one small service next to the site. And Cloudflare in front of it all does the job with nothing changed at DigitalOcean.

DigitalOcean — Droplet

Where: the nginx or Caddy config on your droplet, for acme.com

A droplet is your own server: the rule goes in the nginx or Caddy configuration already serving your site, on the droplet. It is the nginx block described above, and it costs nothing.

DigitalOcean — App Platform

Where: your app spec (Settings → App Spec), plus one small service component

Three steps: two files (package.json and server.js) in a folder of your repository, then, under Settings → App Spec, a meritt-proxy component and an ingress rule routing your prefix to it. It is a paid DigitalOcean service; the smallest instance is enough.

DigitalOcean + Cloudflare

Where: Cloudflare (free plan) in front of acme.com

In Cloudflare: Add site, your domain, Free plan, and you point your registrar at the two name servers it gives you. Then Workers & Pages → Create Worker, the script from the app, and a route on your prefix. Nothing changes in App Platform.

Common questions

Which of the three should I pick?

On a droplet, the web server rule: it costs nothing. On App Platform, the added service is billed by DigitalOcean, and the smallest instance is enough. Cloudflare is free but moves your name servers.

My site is a static site on App Platform. Can it work?

Yes, with the small service: a static site alone cannot relay a path, and App Platform's redirect rule is a real HTTP redirect, not a relay.

Does Cloudflare change my hosting?

No. Your name servers move to Cloudflare, the free plan is enough, and nothing changes in App Platform.

And then

Free until your first commission. No card asked for.