To put an application on your own domain, add the domain on the application’s Domains page, point an A record at the server’s IP address and redeploy. The reverse proxy on the server requests a Let’s Encrypt certificate for every https:// domain automatically.
How do I add a custom domain?
- Open the application and go to Domains.
- Choose Add and enter the full URL, including the scheme, for example
https://shop.example.com. - At your DNS provider, create an
Arecord (andAAAAfor IPv6) forshop.example.compointing at the public IP of the server the application runs on. - Save and redeploy the application.
OnePloy checks the DNS record and shows a “DNS is not pointing to the right IP” warning if it resolves elsewhere. The warning does not block the deployment, but the certificate cannot be issued until DNS is correct.
How does SSL work?
- Domains entered with
https://get a certificate from Let’s Encrypt, requested and renewed by the server’s proxy. - Domains entered with
http://are served without TLS. - Redirect HTTP to HTTPS is enabled by default for HTTPS domains. Disable it only when Cloudflare Tunnel or another proxy in front of your server connects over plain HTTP.
The certificate request needs ports 80 and 443 open on the server and DNS already pointing at it.
Can an application have several domains?
Yes. Add as many domains as you need. For Docker Compose applications, each service in the Compose file has its own domains, and you can choose a direction per service: keep both www and the bare domain, redirect to www, or redirect to the bare domain.
What is the generated domain?
New applications get a default URL so you can test before adding your own domain. Use Generate domain to create one at any time. The generated URL is either a OnePloy subdomain or an sslip.io hostname built from the server’s IP address.
On a server you connected yourself, you can also set a wildcard domain in the server’s settings, so generated URLs become subdomains of your own domain.
How do I serve an app on a path?
Add the path to the domain, for example https://example.com/api. The proxy routes only that path prefix to the application.
Troubleshooting certificates
- Check that
dig +short shop.example.comreturns the server’s IP. - Check that ports 80 and 443 are reachable from the internet.
- Open the server’s proxy logs under Servers, then the server, then Proxy.
- If the domain is behind Cloudflare, use the Full or Full (Strict) SSL mode.
To buy a domain through OnePloy, see Domains and DNS.