Networking & Domains

80/443 Domains & Automatic HTTPS

Serve websites, APIs, WebSockets, and self-hosted apps on standard ports 80 and 443 with zero-config Let's Encrypt TLS.

How Edge Domain Routing Works

Every host node runs a high-performance edge Caddy reverse proxy listening on public IPv4 ports 80 and 443. When a visitor opens https://app.yourdomain.com:

  1. The host terminates TLS using an automatically provisioned and renewed Let's Encrypt certificate for your hostname (HTTP-01 / TLS-ALPN-01).
  2. HTTP (:80) requests are automatically redirected to HTTPS (:443).
  3. Clean HTTP traffic (including HTTP/2 and WebSocket upgrades) is forwarded privately over the internal container bridge straight to the internal HTTP port you chose (such as 3000, 5001, 8000, or 8080).

Domain slot allowances scale by plan: 3 domains on NAT-256 up to 40 domains on NAT-16G (and 10–25 domains on Shared GPU plans).

1. Point Your Domain's DNS

At your DNS provider (Cloudflare, Porkbun, Namecheap, Route53, etc.), create an A record pointing your root domain or subdomain to your node's Host IPv4 address (shown in your panel's Overview & SSH tab):

Type Name Target / Value TTL
A app (or @) 160.202.65.99 (use your node's Host IP) Auto / 300s
Do not add an AAAA record to the container IP unless your container also listens on 443!

If you only add an A record to the host IPv4, both IPv4 and dual-stack visitors seamlessly hit our automatic 80/443 HTTPS edge proxy. If you also add an AAAA record pointing directly to your container's ::2 IPv6 address, IPv6 browsers will connect directly to port 443 inside your container instead of the host proxy.

2. Add the Domain in Your Panel

  1. Make sure your application inside the container is running and listening on 0.0.0.0:<port> over plain HTTP (for example, 0.0.0.0:3000).
  2. In my.natvps.cc, open your server and click the 80/443 Domains tab.
  3. Enter your hostname (e.g. status.example.com) and the internal HTTP port (e.g. 3001 for Uptime Kuma, 8000 for Vaultwarden, 5678 for n8n, 8080 for WordPress/Caddy) and click Add Domain.
  4. Wait 5 to 20 seconds while Let's Encrypt validates your domain and issues the TLS certificate, then visit https://status.example.com!

Using Cloudflare (DNS-Only vs Orange-Cloud Proxied)

  • DNS-Only (Grey Cloud, Recommended): Fastest latency and zero setup quirks. Let's Encrypt issues directly on the host and renews automatically forever.
  • Proxied (Orange Cloud): Works cleanly as long as you set Cloudflare's SSL/TLS Encryption Mode to Full or Full (Strict)! Never use Cloudflare's "Flexible" SSL mode, because "Flexible" sends plain HTTP to port 80, which our edge proxy redirects to HTTPS, causing a ERR_TOO_MANY_REDIRECTS loop.

WebSockets & Forwarded Headers

Our edge Caddy reverse proxy supports WebSockets (ws:// / wss://), Server-Sent Events (SSE), and chunked streaming natively with zero extra configuration (required by Uptime Kuma, Vaultwarden live sync, PocketBase realtime subscriptions, Dockge terminals, and n8n). Standard proxy headers (X-Forwarded-For, X-Forwarded-Proto: https, and X-Forwarded-Host) are passed automatically to your backend app.