Open WebUI with Caddy automatic HTTPS for a single server
Caddy handles certificate issuance and renewal automatically, which makes it a reasonable reverse proxy for one Open WebUI replica on one host. A team lead or platform engineer who needs browser-trusted HTTPS for a shared instance can point a domain they control at the server, let Caddy obtain and renew the certificate, and forward traffic to the Open WebUI container without managing certificate files by hand. The proxy sits in front of Open WebUI and terminates TLS, so the application itself still listens on a local port and users only ever see the public name.
This setup makes most sense when several people sign in to one instance, when prompts may contain sensitive company data that should not travel over plain HTTP, or when the organization wants the certificate tied to a domain it controls rather than to an address on a local network. Caddy also keeps the proxy configuration short, which helps a small team review it. Before relying on it, confirm that the server can be reached on the ports the certificate process needs, that the DNS record resolves to the host, and that your own security team accepts the certificate authority and renewal method Caddy uses in your environment.
The main thing to plan is what happens when one host is no longer enough. Open WebUI's scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, and it requires Redis and shared file storage once several replicas run, so a single Caddy instance in front of a single container is only one layer of a larger design. Caddy's role does not change in that case, but the upstream becomes a load balancer or several backends, and session behavior depends on shared state. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Teams should write down the trigger for moving off this topology, such as user count, availability requirements or a need for a second host, and confirm the planned architecture with their own platform team before the first production rollout.
Which Caddy and certificate options fit which situation
This table compares three ways to get TLS certificates for Open WebUI behind Caddy: a public domain with automatic certificates, a private or internal CA, and a manually managed certificate. Read each row against your DNS, network reachability and the people who must renew certificates. The main takeaway is that automatic issuance depends on the server being publicly reachable, and private networks usually need a different trust path.
| Option | When it fits | Operator must provide | Main trade-off |
|---|---|---|---|
| Public domain with automatic certificates | Open WebUI is reachable on a public or split-horizon hostname that a public certificate authority can validate | A DNS record pointing to the server, inbound ports open for the validation method Caddy uses, and a contact address for the account | Least manual renewal work, but it depends on inbound reachability and public DNS being in place; confirm current issuance behavior in Caddy's documentation |
| Internal or private CA certificate | Open WebUI runs on a private network without public DNS, and your organization already operates an internal certificate authority | An internal CA issuing a certificate for the Open WebUI hostname, the CA root installed on user devices and any clients that call the API | Clients must trust the internal root everywhere, and renewal and revocation stay with your PKI team; confirm Caddy's internal issuance options against its documentation |
| Manually managed certificate | Your security team requires certificates from a specific issuer, or the environment blocks automated issuance and renewal | A certificate and private key file placed on the server, a documented renewal process and a reload step after each renewal | Simple to reason about, but expiry is easy to miss; renewal is a recurring task owned by a person or ticket queue |
| Certificate terminated upstream | A load balancer, cloud ingress or corporate proxy already terminates TLS in front of Caddy | Agreement on which layer holds the certificate, forwarded headers configured, and trust between the proxy and Caddy | Caddy may not manage certificates at all, so the team that owns the upstream layer becomes responsible for renewal |
| Any option with more than one replica | Several Open WebUI instances sit behind a shared entry point | A single certificate source for the entry point and shared renewal ownership | A single Caddy server on one machine does not provide the redundancy that multi-replica setups need, so the certificate story alone does not settle the architecture |
Setup sequence for Caddy in front of Open WebUI
This sequence takes a single server from a bare DNS name to an Open WebUI instance served over HTTPS through Caddy, with each step closed by a check you can run yourself. It is written for a team that will own the server after setup.
Confirm the DNS name and inbound access
Your network or infrastructure team creates an A record (and an AAAA record if the server has IPv6) pointing the chosen hostname at the server's public or reachable address. Confirm that inbound TCP ports 80 and 443 reach the server, since Caddy uses port 80 for the HTTP challenge and port 443 for HTTPS. Check the record from a machine outside your network with a DNS lookup tool, and confirm that a connection to port 443 is accepted. Ask your network team to confirm the firewall and any cloud security group rules in writing, because a blocked port 80 is the most common reason certificate issuance fails. The step is done when the name resolves to the right address and both ports answer from outside.
Run Open WebUI on a pinned release
Deploy Open WebUI with Docker or Docker Compose, using an image tag you choose and record rather than a floating tag such as latest. Browse the project's GitHub releases page to pick the release your team will support, and check its notes for breaking changes and the license terms that apply to that version. Bind the container's port to the loopback interface (for example, 127.0.0.1) so that only Caddy on the same host can reach it. Confirm that the container is running and that the application answers locally with a request to the bound port on the host. The step is done when a local request returns the Open WebUI page and the container logs show no startup errors.
Install Caddy and set the site block
Install Caddy on the same host using the method your operating system team already supports. Create a Caddyfile that names your hostname as the site address and sets a reverse_proxy directive to the loopback port where Open WebUI listens. Caddy obtains and renews certificates automatically when the site address is a public name, so no separate certificate tool is needed for this path. Validate the file with the Caddy validate command before reloading the service, and keep the file in version control. The step is done when validation passes and the Caddy service reloads without errors.
Verify the issued certificate
Watch the Caddy service logs during the first start to confirm that it requested and received a certificate for your hostname. Then connect to the site over HTTPS from a browser and from the command line, and inspect the certificate to confirm the subject name, issuer and validity dates match what you expect. Confirm that a plain HTTP request to the hostname redirects to HTTPS. If issuance fails, check that port 80 and 443 are reachable and that the DNS record has propagated before changing the Caddy configuration. The step is done when the certificate is valid for the hostname and HTTP redirects to HTTPS.
Confirm WebSocket and streaming responses
Open a chat in the browser through the HTTPS hostname, send a prompt to a model you have connected, and confirm that the response streams token by token rather than appearing all at once at the end. Open the browser developer tools and check that the WebSocket connection for the session is established and stays open during the response. Caddy proxies WebSocket upgrades without extra directives in most setups, but confirm this on your own build and Caddy version rather than assuming it. If responses arrive in one block, check that no other proxy or buffering layer sits between the browser and Caddy. The step is done when a streamed reply and an open WebSocket are both observed through the proxy.
Check sign-in and admin pages over HTTPS
Sign in with the first administrator account through the HTTPS hostname and confirm that the session cookie is marked secure in the browser. Open the admin settings pages and confirm they load without mixed-content warnings or redirect loops. Confirm that the URL the application generates for links, redirects and OAuth callbacks uses the https hostname, because a mismatch here breaks single sign-on later. Record the hostname and the Caddy configuration in your change log so that the next upgrade reviewer knows the expected external URL. The step is done when sign-in, admin pages and generated links all use the HTTPS hostname without errors.
Plan for the limits of a single server
Before users depend on the setup, record what this single-host design does not cover: one proxy, one application container and no failover if the host is lost. If you plan several replicas, Redis, PostgreSQL and shared file storage are required, and Caddy then needs to point at a load balancer or to multiple upstreams. Ask your team to confirm backup and restore procedures for the Open WebUI data directory and the Caddy certificate storage, and to test a restore on a second host. The step is done when the limits, the backup owner and the restore test are written down and assigned.
Where Caddy on one server stops being enough
A single-server Caddy setup stops being the right design as soon as Open WebUI runs more than one replica. The Open WebUI scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, and it requires Redis for shared sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. Caddy can terminate TLS and proxy to one upstream or several, but it does not provide the shared state those replicas depend on. Once the database, Redis and file store live outside the host, the proxy has to distribute traffic across instances that are no longer interchangeable in their local state, which is the point where a load balancer or cluster ingress becomes part of the design.
SQLite is the first limit most teams hit. The scaling guide says SQLite remains acceptable for a single replica, evaluation or a small team only when the database file sits on locally attached SSD or NVMe storage rather than network storage. A Caddy host that mounts a network volume for convenience, or a plan to add a second server that shares that file, breaks this condition. Confirm the storage type of the host before you rely on SQLite, and treat any move to a second node as a trigger for PostgreSQL.
Two other limits follow from the same change. The scaling guide warns that the default ChromaDB will crash in multi-process setups, so several workers or replicas need an external vector database. Separately, without Redis, signing out does not revoke tokens; they remain valid until they expire, by default after 4 weeks. Ask your team whether any replica can run without Redis, because a sign-out on one instance would not reliably end sessions on the others. Plan the external vector store, Redis and shared storage before adding a second upstream to the Caddyfile, since those services, not the proxy, decide whether scaling is safe.
Security settings to review on the Caddy edge
Caddy is the only component facing the network in this design, so most of the exposure decisions sit in its configuration. The cards below cover the proxy controls to review before go-live, from which ports are open to what the proxy logs and how certificates are kept renewed.
Restrict exposed ports
Only ports 80 and 443 should answer on the public interface, and 80 is needed mainly for the HTTP-to-HTTPS redirect and certificate challenges. Check the host firewall, the cloud security group and any load balancer rules together, because a rule in one layer can open a port the others assume is closed. Confirm that no administrative port, database port or Redis port is reachable from outside the host.
Keep Open WebUI off the public network
Open WebUI should listen only on a private interface or the container network that Caddy reaches, never on a public address. Verify this from outside the host with a port scan or a direct request to the Open WebUI port, since a published container port often bypasses the expectation that only Caddy is exposed. Record the internal address in the Caddyfile so the upstream is explicit and reviewable.
Proxy access logging and retention
Caddy can write access logs with request paths, status codes and client addresses, which helps incident response but also stores personal data. Decide what fields are logged, where the files go, who can read them, and how long they are kept, and set a rotation policy that matches your records requirements. Confirm that prompt content is not written into proxy logs by default and that log access follows your administrative access model.
Forwarded client header handling
Open WebUI may use forwarded headers to identify the client address and original scheme, so the proxy must set these values itself rather than trust what a browser sends. Review which headers Caddy passes through, strip any client-supplied forwarding headers that your application does not expect, and confirm that the application's logs show the real client address. Test this with a request that includes a spoofed forwarding header.
Certificate keys and renewal monitoring
Caddy obtains and renews certificates automatically, but the private keys it stores are sensitive and the renewal process still depends on reachable challenge paths and an account with your certificate authority. Confirm where Caddy keeps its data directory, restrict read access to it, and back it up under the same controls as other secrets. Monitor expiry dates and renewal errors so a failed renewal is noticed before the certificate lapses.
Questions teams ask before running Caddy in production
How much effort does a single-server Caddy setup for Open WebUI take?
The initial setup is usually small in scope: one reverse proxy configuration, one DNS record, and a check that certificates are issued and renewed. What drives the effort up is everything around it: how many hostnames sit behind the proxy, whether WebSocket and streaming responses are tested end to end, how logging and access controls are set, and whether the server is hardened and documented. Ask any partner to quote the work as a written scope listing each hostname, the test cases for long streamed answers and WebSocket sessions, and the handover documents. No duration is given here because the answer depends on those inputs.
Can our internal team set up Caddy and Open WebUI without outside help?
Often yes, if at least one engineer is comfortable with Linux, Docker or systemd, DNS, and TLS basics. The skills most teams lack are not the Caddyfile syntax but the testing: confirming streaming responses are not buffered, WebSocket upgrades work, and certificate renewal succeeds before a public launch. Check whether the team has done this before, whether the server is inside a network where public certificate authorities can validate the domain, and whether someone can own it after launch. If any of those are missing, a short external review of the configuration and test plan is a common middle path.
What do we need to provide before a partner can start?
Plan to supply four things before work begins:
- A domain or subdomain you control, and access to the DNS zone to add records.
- A server or virtual machine with inbound ports for HTTP and HTTPS reachable from the networks that need access, and outbound access so certificates can be issued.
- Network details: which internal network segments can reach the server, and whether a firewall or load balancer sits in front.
- A named owner on your side who approves changes, receives certificate and server alerts, and decides on upgrades.
If the certificates must come from an internal authority instead of a public one, add the CA process and trust distribution to this list.
When should we bring in outside help instead of running Caddy ourselves?
Bring in outside help when the setup will serve many users, when it must meet an audit or internal control standard, or when no one on the team can own renewals and incident response. A single Caddy instance also stops being enough when Open WebUI runs as several replicas behind a load balancer, when certificates must be issued from an internal authority across many hosts, or when you need documented evidence for access control and logging. For those cases, the proxy is only one part of the design, and the scaling and identity work usually needs an external review. Ask a partner to state which of these conditions they expect to change the scope.
What recurring work remains after the Caddy setup goes live?
Recurring work is small but it does not stop. Plan for these tasks on a fixed schedule:
- Upgrading Caddy and Open WebUI, reading release notes first, and retesting streaming and WebSocket behavior after each change.
- Monitoring certificate issuance and renewal, and alerting before expiry if renewal fails.
- Reviewing proxy and application logs for errors, unusual traffic, and failed sign-ins.
- Reviewing DNS records and firewall rules when staff or networks change.
Who pays for each item depends on whether your team or a retainer covers it. Ask a partner to quote these as separate recurring items so you can compare them with in-house time.
Does the Open WebUI License affect a Caddy setup for our company?
The reverse proxy itself does not change the licensing position, but the application behind it does. Since v0.6.6, Open WebUI code is distributed under the Open WebUI License, which forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Code through v0.6.5 remains under BSD-3-Clause. Check the user count and version you plan to run, and confirm the branding terms with the license documentation or Open WebUI enterprise sales before you change any interface text, logo or footer. Your proxy configuration should not be used to hide or rewrite branding.
What should we ask a partner to quote for a Caddy production setup?
Ask for a fixed-scope written quote that lists each deliverable and its acceptance test. Useful items include the number of hostnames and certificates, the environment (cloud, data center, or air-gapped), the test plan for streaming, WebSocket and large uploads, the hardening baseline for the proxy host, logging and log retention settings, the handover runbook, and the retest after any change. Also ask which items are one-time and which recurring, what a retainer covers for upgrades and certificate monitoring, and what the partner needs from you in each phase. A quote built this way lets you compare it directly with the internal effort estimate.
Is a single Caddy server secure enough for sensitive prompts and documents?
A single proxy handles encryption in transit and certificate management, but it does not decide whether the setup is secure on its own. Security depends on the host hardening, which ports are exposed, how administrative access to Caddy and the server is controlled, how logs are protected, and how Open WebUI authentication and file handling are configured. Confirm these with your security team before launch, and ask a partner to test the public endpoint and the proxy host as part of the review. Treat any compliance statement as something your auditor or certification body decides, since DeployOpen prepares evidence but does not issue attestations.
Limits to confirm in your environment
Caddy's automatic HTTPS depends on conditions outside the Open WebUI container: DNS, outbound certificate issuance, network trust and how browsers handle long-lived connections. Each card names the team that should confirm the item before the design is treated as final.
Public DNS and issuance
Caddy obtains public certificates by proving control of the hostname, which usually means port 80 or 443 must be reachable from the internet and the name must resolve publicly. Network or security teams own this. Confirm that the chosen hostname can be created in public DNS, that inbound challenge traffic is permitted, and that the issuing certificate authority is allowed by policy. If the site is internal only, this path does not apply and the card moves to private CA planning.
Scaling docsPrivate CA for internal names
Internal hostnames cannot receive public certificates, so Caddy needs an internal certificate authority or a corporate CA that browsers already trust. Security and PKI owners decide which option applies. Confirm who issues the root, how it reaches employee devices, how long leaf certificates last, and whether clients such as command-line tools and mobile apps also trust the chain.
Proxy and Open WebUI version match
Open WebUI releases change how they expect requests to arrive, including headers, path prefixes and streaming behavior. The platform owner should pin the Open WebUI image tag and test the exact Caddyfile against it before each upgrade. Confirm the release you run, then check that the proxy configuration was validated on that version rather than on an older example.
- Latest release in sources
- v0.12.3
WebSocket behavior in user browsers
Open WebUI streams responses and uses WebSocket connections, and some corporate browsers or security agents limit long-lived connections. The application owner should test chat streaming, reconnects after a laptop sleeps, and long answers in each approved browser. Confirm that the proxy forwards upgrade requests and that the browser fleet does not drop connections on the timeouts your network sets.
Corporate TLS interception
If a security gateway re-signs HTTPS traffic, browsers and the Open WebUI server may reject certificates that Caddy presents or that Open WebUI calls outbound. The endpoint team should confirm whether interception applies to users, to the server's outbound calls, or to both. Where it does, the corporate root must be trusted on clients and, for outbound requests, in the container trust store as well.
Single-server ceiling and data path
A Caddy host with one Open WebUI container keeps certificates, configuration and sessions on one machine, so a host loss stops access until it is rebuilt. The platform owner should confirm whether that outage is acceptable, where Caddy's certificate storage lives and who can restore it, and whether the design needs a shared database, Redis and a load balancer. Scaling guidance sets the threshold for that change.
Scaling guideRequest flow from browser to Open WebUI through Caddy
The request starts in the user's browser, which resolves the public hostname through DNS and connects to Caddy on the server. Caddy terminates TLS there, using a certificate it obtains and renews automatically, then forwards plain HTTP over a private port to Open WebUI, which calls model providers outbound. Check where the trust boundary sits, confirm that the Open WebUI port is not reachable from outside, and note that the single-server limit appears once several Open WebUI replicas need a shared load balancer and shared state.
Traffic path from the browser through Caddy to Open WebUI and outbound model providers on one server.
How DeployOpen scopes and delivers Open WebUI edge setups
DeployOpen plans, builds, documents and supports the Caddy edge in front of Open WebUI inside your own infrastructure. The work starts with a written scope that states the domain, the server, the certificate method and the point at which a single server stops being enough, so the team knows what it is approving before any configuration changes.
How we scope
- Confirm the public hostname, DNS control and whether the server can reach Let's Encrypt or needs an internal CA.
- Document which Open WebUI replicas, database and Redis state the proxy will front, and where single-server limits apply.
- Agree the written scope, deliverables and timeline before work starts, with an optional retainer for ongoing support.
How we build
- Configure the Caddyfile for Open WebUI with WebSocket and streaming behavior verified against your model traffic.
- Set certificate renewal, HTTP to HTTPS redirects, security headers and log output to match your logging policy.
- Test certificate issuance, renewal behavior, long streaming responses and failover to a recovery path on your own infrastructure.
How we hand over
- Deliver the Caddy configuration, service definitions and a runbook covering renewal, log locations and rollback steps.
- Provide a short evidence pack showing test results, certificate details and the access settings that were verified.
- Walk your operations and security teams through the configuration so they can review and maintain it independently.
How we support
- Review Caddy and Open WebUI version changes before upgrades so proxy settings stay compatible with the new release.
- Offer retainer support for certificate monitoring, configuration changes and periodic retesting of the edge.
- Plan the move to a load balancer or ingress controller in a separate scoped engagement when replicas outgrow one server.

