Every OnePloy server runs a reverse proxy that receives traffic on ports 80 and 443, routes each domain to the right container and obtains Let’s Encrypt certificates. Traefik is the default. You can switch a server to Caddy, or to a custom proxy you manage yourself, on the server’s Proxy page.
Which proxy should I use?
| Option | Description |
|---|---|
| Traefik | The default OnePloy proxy. Recommended for most servers. |
| Caddy | The OnePloy Caddy integration, an alternative with automatic HTTPS. |
| Custom | You run and configure the proxy yourself. OnePloy does not manage it. |
How does routing work?
When you deploy a resource with a domain, OnePloy adds proxy labels to its container. The proxy reads the labels, creates the route and requests a certificate for https:// domains. You do not edit proxy configuration for normal deployments.
The Generated labels setting controls which labels OnePloy writes:
- All supported proxies: labels for both Traefik and Caddy are generated, so switching the proxy keeps routing working.
- Active proxy only: fewer labels, but every resource must be redeployed after a proxy switch to become reachable again.
How do I change the proxy configuration?
- Open Servers, select the server and go to Proxy.
- Edit the configuration file shown on the page and save.
- Restart the proxy when prompted.
If you break the configuration, use the reset option to restore the OnePloy default. The page also warns when the running configuration is out of sync with the saved one, and when a newer Traefik version is available.
What are dynamic configurations?
Dynamic configurations are extra proxy files, for example a route to a service that OnePloy does not manage, or custom middleware. Add them on the proxy’s dynamic configuration page. Each file is loaded by the proxy without changing the main configuration.
Where are proxy logs?
On the proxy page, open the proxy logs. They show certificate requests and routing errors, which is the first place to look when a domain does not load or a certificate is missing.
What happens to unknown requests?
Requests for a domain that no resource uses can be answered by the proxy’s default behaviour or redirected to a URL you choose, using the Unknown requests and Redirect URL settings.
Can I manage the proxy through the API?
Yes:
GET /api/v1/servers/{uuid}/proxyreturns the proxy settings.PATCH /api/v1/servers/{uuid}/proxyupdates them.PUT /api/v1/servers/{uuid}/proxy/configurationsaves a configuration file.POST /api/v1/servers/{uuid}/proxy/restartrestarts the proxy.