Addresses, Cloudflare and moving domains
Appwind Pay answers on three addresses. Each is one level under your domain, so Cloudflare's free certificate covers it when the record is proxied.
| Address | What it serves |
|---|---|
pay.appwind.ai |
Website, docs, blog and the dashboard |
pay-api.appwind.ai |
The SDKs, store notifications, webhooks and the MCP server |
pay-cdn.appwind.ai |
Paywall images and videos, cached for 30 days |
Add the DNS records
In Cloudflare → appwind.ai → DNS → Records, add three A records pointing to the server's IP, with the proxy off (grey cloud, "DNS only") for now:
pay A <server IP> DNS only
pay-api A <server IP> DNS only
pay-cdn A <server IP> DNS only
Point the server at them
cd /opt/upwall && .venv/bin/python -m upwall set-hosts --dashboard pay.appwind.ai --api pay-api.appwind.ai --cdn pay-cdn.appwind.ai
cd /root/upwall && bash deploy/install.sh
set-hosts keeps your previous addresses under old_hosts: in config.yaml. They keep working: pages answer with a permanent redirect to the new address, while SDK calls, Apple and Google notifications and webhooks are still served, so apps already in the store don't break. The installer adds HTTPS for every address that points to the server.
Then turn the proxy on
Once the installer prints HTTPS on: for all three, you can switch pay and pay-cdn to Proxied (orange cloud) and set SSL/TLS → Full (strict). The server already reads the visitor's real address from Cloudflare (CF-Connecting-IP), so rate limits and sign-in protection keep working per person.
Keep pay-api on DNS only unless you have a reason to proxy it: Apple, Google and the SDKs talk to it directly, and nothing there benefits from caching.
After the move
- App Store Connect and Google Play: change the notification URL to the new
pay-apiaddress (Apps & SDK keys shows it). The old one keeps working meanwhile. - Email: verify
pay.appwind.aiin Resend, or setemail.fromto an address on a domain you've verified. - SDKs: new app versions should use the new API address; old versions keep using the old one until you remove it from
old_hosts:. - When no live app uses an old address any more, delete it from
old_hosts:and run the installer again.