---
title: "Reverse proxy"
description: "How the reverse proxy on each OnePloy server routes domains to containers, issues Let's Encrypt certificates and accepts custom config."
url: https://oneploy.dev/docs/servers/proxy/
type: op_doc
published: 2026-11-02T19:09:48+00:00
updated: 2026-11-02T19:09:48+00:00
author: "admin"
language: en-US
---

# Reverse proxy

> How the reverse proxy on each OnePloy server routes domains to containers, issues Let's Encrypt certificates and accepts custom config.

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?

1. Open **Servers**, select the server and go to **Proxy**.
2. Edit the configuration file shown on the page and save.
3. 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}/proxy` returns the proxy settings.
- `PATCH /api/v1/servers/{uuid}/proxy` updates them.
- `PUT /api/v1/servers/{uuid}/proxy/configuration` saves a configuration file.
- `POST /api/v1/servers/{uuid}/proxy/restart` restarts the proxy.

---

Source: https://oneploy.dev/docs/servers/proxy/ · OnePloy
