OpenProject behind a reverse proxy with TLS

Publishing self-hosted OpenProject behind your own proxy or load balancer touches HTTPS mode, host names, upload limits and outbound trust. This page explains each decision and what to confirm before go-live.

On this page

Why OpenProject behind a reverse proxy with TLS needs planning

Publishing OpenProject under a corporate host name with HTTPS through an existing Apache, nginx or load balancer tier is not a single setting. It is a set of coupled decisions: which public host name users type, whether TLS ends at the edge or inside OpenProject, how large uploads may be before the proxy rejects them, and which addresses the application is told to trust as upstream proxies. Teams usually meet this need in three situations: an edge proxy already terminates TLS for every internal service and certificate policy requires it to stay the single entry point, the organization wants certificates issued and rotated by its own public key infrastructure, or the deployment runs on Docker Compose or the Helm chart where the bundled proxy or ingress has to be wired to the existing edge. Each case changes which component owns the certificate and which one sees the original client address.

The Docker Compose installation enables HTTPS mode by default, so a team that places another proxy in front of the bundled Caddy container must change the configuration before go-live. The bundled proxy must be told about upstream proxies through trusted_proxies in the Caddyfile. Without that, forwarded headers are not handled as the team expects, and generated links, redirects and session behavior can point to the wrong scheme or host. The Helm chart follows a different model, with ingress TLS and a separate egress.tls.rootCA setting for outbound calls to internal services that use a private certificate authority. Before you change anything, confirm which proxy holds the certificate, which host name users and integrations will use, and whether any internal service OpenProject calls needs a custom root CA added.

Decide these points on paper before the first deployment, because a change later touches the host name, the certificate chain and the proxy limits at once. Ask the platform team for the exact edge proxy product and version, the upload size they expect users to send, the list of upstream hops in front of OpenProject, and the internal certificate authorities that outbound calls must trust. Then check the matching settings in the OpenProject Docker Compose documentation or the Helm chart documentation, depending on your deployment model. Treat the proxy, host name, certificate and trusted address settings as one change set that is tested together.

Proxy and TLS options and when each fits

This table compares four places to terminate TLS for OpenProject: the bundled Caddy proxy, an external Apache or nginx, a cloud load balancer, and Helm ingress. Read each row to see who holds the certificates, where upload limits apply and where the client IP is visible, then match the option to your existing edge.

OptionWho holds the certificatesWhere upload limits applyWhere the client IP is seen
Bundled Caddy proxy (Docker Compose)Your team, configured in the Compose setup and Caddyfile; HTTPS mode is on by defaultThe bundled proxy, plus any proxy you place in front of itAt the bundled proxy; if another proxy sits in front, trusted_proxies must be set in the Caddyfile
External Apache or nginxYour team, on the reverse proxy host or in your certificate toolingThe external proxy's body size limit (for example client_max_body_size in nginx) applies to uploads that pass through OpenProjectAt the external proxy; forwarded headers must reach OpenProject and the trusted proxy settings must match
Cloud load balancerThe cloud provider's certificate service or your uploaded certificate, depending on the product you chooseThe load balancer may have its own request size limit; confirm it with your provider in addition to OpenProject's settingsAt the load balancer; confirm with the provider whether client address headers are forwarded to the instances
Helm chart ingress TLSYour cluster's ingress controller or certificate manager, configured through the chart's TLS settingsThe ingress controller's body size setting applies before traffic reaches OpenProject podsAt the ingress controller; check that forwarded headers are passed through to the OpenProject pods
Outbound calls to internal servicesYour internal certificate authority; the Helm chart can add custom root CAs through egress.tls.rootCANot applicable to uploads; this covers trust for connections OpenProject makes out to your servicesNot applicable; this concerns trust for outgoing connections, not inbound client addresses

How the proxy layer differs by install method

The official Docker Compose setup ships with a bundled Caddy proxy in front of the OpenProject container. That proxy handles HTTP and, by default, HTTPS mode, so the Compose install is the path where the proxy layer is already built in. The team's work is to decide whether that bundled proxy faces users directly or sits behind a corporate load balancer or another reverse proxy.

  • HTTPS mode: Docker Compose enables HTTPS mode by default. Confirm the setting matches how users will reach the host, since a mismatch breaks redirects and secure cookies.
  • trusted_proxies in the Caddyfile: When the bundled proxy sits behind another proxy, set trusted_proxies in the Caddyfile so client addresses are read correctly.
  • Upload limits: The bundled proxy enforces its own body size limit. Upstream proxies apply their own limits too, so both must allow the largest expected attachment.
  • Certificates: Your team must decide where certificates come from and how they renew. Confirm the approach with your certificate authority or security team before go-live.
  • Host name: Set the public host name the users will type so links and redirects point to the correct address.

Check that each proxy in the chain forwards the original scheme and client address, and test an upload close to your size limit from a browser on the user network.

How a browser request reaches OpenProject through the proxy chain

The request starts at the browser and first meets the corporate load balancer or edge proxy, which usually terminates TLS. From there it may pass through the bundled Caddy proxy, which must trust the upstream proxy through trusted_proxies in the Caddyfile, before reaching the OpenProject web container. Check the upload body size limit at the first proxy that handles the request, and check that outbound calls from OpenProject trust your custom root CA.

Request path from the browser to OpenProject, with the proxy hops that need configuration.

How to publish OpenProject behind a proxy in order

This sequence takes OpenProject from a working internal install to a published HTTPS service behind your load balancer or reverse proxy, with each layer confirmed before the next one depends on it.

  1. Fix the public host name first

    Decide the final public address users will type, such as the name on your DNS record, and set it as the host name in OpenProject before anything else. Your team sets this in the configuration used by your installation method, then confirms the host name matches what the browser sees. Done means that a request to the public address loads the login page without redirecting to an internal name or an IP address.

  2. Confirm HTTPS mode for the install method

    Check how your installation method handles TLS. Docker Compose enables HTTPS mode by default, so the bundled proxy expects to terminate TLS for the public name. Package and other installs require you to set the protocol explicitly in their configuration. Done means the generated links, cookies and redirects all use https, which you can confirm by reading the response headers from the public address.

  3. Set trusted proxies when a second proxy sits in front

    If your load balancer or corporate reverse proxy forwards traffic to the bundled Caddy proxy, the Caddyfile needs a trusted_proxies entry that names the address of that outer hop. Without it, client IP addresses and scheme information are not passed through correctly. Your network or platform team supplies the address range. Done means that the audit log or session records show the real client address rather than the address of the outer proxy.

  4. Set the body size limit on the outer proxy

    Uploads sent through OpenProject's own servers are capped by the outer proxy's body size limit, for example client_max_body_size in nginx. Agree the largest attachment your users must upload with the project owners, then set the limit on the outer proxy to match or exceed it. If you later move attachments to direct uploads on S3-compatible storage, this limit matters less. Done means a test file just under the agreed maximum uploads without a 413 error.

  5. Forward the required headers through every hop

    Configure the outer proxy to pass the original host, the forwarded protocol and the client address to the next hop, and to support WebSocket connections used by live features. Each proxy in the chain must forward these values unchanged. Your platform team owns the outer proxy configuration, and the OpenProject team confirms what the application expects. Done means a request through the full chain shows the public host and https scheme in the application's own logs or request details.

  6. Test uploads, redirects and login

    Run a scripted check from outside the internal network. Log in, create a work package, attach a file near the size limit, open a link from an email notification, and sign out and back in. Watch for redirects to the internal name, mixed content warnings, and upload failures. Done means each action completes on the public address with no redirect to an internal host and the attachment opens after upload.

  7. Add custom root CAs for outbound calls

    If OpenProject calls internal services such as an identity provider, a git host or a mail relay that use certificates from your private CA, the application must trust that root. In Helm deployments, egress.tls.rootCA supplies the certificate. Other installs need the root added to the container or system trust store. Your security team supplies the root certificate. Done means an outbound integration test to an internal HTTPS service succeeds without certificate errors, and the same test fails when the root is removed.

Why upload size limits break attachments at the proxy

Every file uploaded through OpenProject's own servers is capped by the body size limit of the proxy in front of it. When a user attaches a file to a work package, the request passes through the reverse proxy before it reaches the OpenProject web process. Nginx enforces this limit with client_max_body_size, and Apache and load balancers have their own equivalents. If the file is larger than the limit, the proxy rejects the request, often with a generic error page, and the upload never reaches OpenProject. The application log may show nothing at all, which is why this failure is frequently misdiagnosed as an application bug. Direct uploads to S3-compatible storage avoid this path, because the browser sends the file to the object store instead of through OpenProject's servers. Your limit then depends on the storage configuration rather than the proxy.

Plan the limit as a value that every layer agrees on. In a deployment with Apache or nginx in front of the bundled Caddy proxy, each hop can enforce its own maximum, and the smallest one wins. Check the outer proxy, any load balancer or web application firewall, and the bundled proxy configuration, then align them with the largest attachment your teams need to upload. Confirm the exact keys for your proxy version in the OpenProject advanced configuration documentation and in your proxy's own reference, since the names differ between products.

Test the change with a file close to the limit, not only a small test file. Upload a file slightly below the configured maximum and one slightly above it, then confirm the first succeeds and the second fails with a clear message. Repeat the test from a browser on the corporate network and from any path that uses an API client. Record the result in your change log so the next upgrade or proxy migration does not quietly reduce the limit again.

Security and operational risks of the proxy layer

The reverse proxy sits between every user and OpenProject, so it decides which client addresses, certificates and internal paths the application trusts. The cards below cover the risks that appear most often in these setups and the control that addresses each one. Review them together before the proxy goes live, because a weakness in one layer usually shows up in another.

Trust in forwarded headers

OpenProject reads X-Forwarded-For, X-Forwarded-Proto and host headers set by the proxy. If any client can reach the application without passing through the proxy, or the proxy passes client-supplied values through unchanged, a user can spoof the address or scheme the application records. For the bundled Caddy proxy behind another proxy, set trusted_proxies in the Caddyfile to the upstream address range only. Test by sending a request with a forged X-Forwarded-For header and confirming the audit log shows the real source.

Compose docs

Certificate lifecycle and renewal ownership

Certificates expire silently, and an expired certificate on the public name stops every user at once. Decide who owns issuance, renewal and deployment to the proxy before go-live, and whether the bundled Caddy proxy or the Helm ingress handles automatic renewal in your setup. Confirm the alert path for expiry dates, including who is paged and how the renewed key is distributed to every load balancer node.

Helm chart docs

Exposure of the internal port

The application container listens on an internal port that is meant to be reachable only from the proxy. If the host firewall, Compose port binding or Kubernetes service type exposes that port on a public interface, requests can bypass TLS, the forwarded headers and any access rules the proxy enforces. Bind the published port to localhost or a private interface, restrict inbound traffic at the network layer, and scan from outside the proxy network to confirm the port does not answer.

Custom root CA handling

Helm deployments add custom root CAs for outgoing connections through egress.tls.rootCA, which OpenProject needs when it calls an internal identity provider, storage or mail server signed by a private authority. Every CA you add is trusted for every outbound call, so a compromised or overly broad root can intercept those connections. Add only the internal CA that signs the services you call, restrict the set of hosts OpenProject can reach, and record who approves each change.

Logging of real client addresses

If the proxy logs only its own address, audit trails and security investigations cannot tell which user or network made a request. Configure the proxy to pass the original client address and confirm the application log shows it after the forwarded headers are trusted. Also decide how long proxy access logs are kept and who can read them, because those logs contain user names, paths and addresses that fall under your data protection rules.

Upload limits and proxy timeouts

Limits such as client_max_body_size in nginx stop large attachments before they reach OpenProject, and the failure often looks like an application error to users. Raising the limit without a plan increases the damage a large or repeated upload can do to the server and proxy buffers. Set the limit to the largest attachment your policy allows, align timeouts with upload speed, and test a file just above the limit to confirm the proxy returns a clear error.

Questions teams ask before publishing OpenProject behind a proxy

What drives the cost of putting OpenProject behind a reverse proxy with TLS?

The cost follows the number of proxy layers, the certificate sources, the number of environments and whether you run an internal certificate authority. A single public host behind one nginx or Apache instance is a small job. Each extra hop, such as a corporate load balancer in front of the bundled Caddy proxy, adds configuration, testing and documentation. Internal CA use adds trust distribution to clients and to OpenProject's outbound calls. Each environment (test, staging, production) repeats the work. Ask any partner for a quote that lists these items separately, and ask which parts are one-time (design, initial configuration, testing) and which recur (certificate renewal, upgrade retesting, proxy changes).

Can an internal team set up OpenProject behind a proxy without outside help?

Usually yes, if the team already runs reverse proxies and manages TLS certificates for other internal applications. The configuration itself is documented: HTTPS mode, host name settings, proxy body size limits for uploads, trusted proxies for the bundled Caddy proxy and custom root CAs for outbound calls. The harder parts are the decisions around them: who owns DNS, which certificate authority is approved, how renewals are automated and how the proxy chain is documented for auditors. Teams without that experience often get the upload limit or forwarded headers wrong, which shows up later as broken links or login loops. An internal team can work through the checks in this topic, but it should test uploads of realistic file sizes before go-live.

What does the work need from our team before it starts?

Prepare four inputs before any configuration begins. First, a network diagram showing every hop between users and the OpenProject container, including load balancers, web application firewalls and any other proxy. Second, a certificate policy stating which authority issues certificates, the key length, the renewal method and who approves exceptions. Third, DNS ownership: the named person or team who can create and change the records for the public host name and any internal alias. Fourth, the list of environments and their host names. Also confirm whether users will upload large files, because that sets the body size limit on the proxy. Missing any of these usually delays the work more than the configuration itself.

What makes the timeline longer or shorter for a proxy and TLS setup?

The timeline depends on approval cycles rather than on the commands themselves. The main drivers are how long your certificate authority takes to issue certificates, how quickly DNS changes are made in your environment, whether change windows for the proxy are scheduled, and how many environments must be validated in sequence. Teams with a documented certificate process and a DNS owner who responds quickly move faster. Teams that need a new internal CA, a new load balancer or a security review of the proxy configuration should plan for those as separate tracks. Ask for the timeline in writing, with the dependencies named, before you commit to a date.

Do we need Enterprise to keep SSO working on the same host name?

Only if you plan to use single sign-on methods that OpenProject lists as Enterprise features. The proxy and TLS configuration itself does not depend on the plan. Single sign-on through SAML, OIDC, CAS, Kerberos or Okta is listed on the pricing page as an Enterprise feature, so confirm the plan that covers your chosen method before you assume it is available. Callback URLs for the identity provider must match the public host name exactly, including the scheme and any port, so the proxy and host name settings must be finished before you register the application with your identity provider. Check the current plan details on the OpenProject pricing page and confirm them with OpenProject.

What breaks most often after OpenProject goes live behind a proxy?

The most common faults are upload failures, mixed content warnings and login redirects that point to the wrong scheme or host. Uploads fail when the proxy's body size limit, such as client_max_body_size in nginx, is lower than the file sizes users send. Mixed content and wrong redirects usually mean forwarded headers or the host name setting do not match the public address. With the bundled Caddy proxy behind another proxy, trusted_proxies must be set in the Caddyfile, otherwise the forwarded client details are ignored. Outbound calls to internal services can fail when a private root CA is missing from the trust store. Test one large upload, one login, one password reset email link and one outbound integration call before you announce the service.

When is a partner review of our proxy and TLS design worth paying for?

A partner review is most useful when the design has several layers, regulated data, or an approval requirement that your team has not handled before. Examples include a chain of load balancer, WAF and bundled proxy, a private CA that must be trusted by outbound calls, or a security team that wants the trust path documented for an assessment. A review checks the design against your network diagram and certificate policy, flags the fault points above, and produces a written configuration and test list. It does not replace your certificate authority or produce an audit opinion. If your topology is one proxy with a public certificate, your own team can often handle it with the checks in this topic. Ask for a fixed-scope quote that names the diagrams and environments reviewed.

Where this setup sits in a wider OpenProject rollout

The proxy and TLS choices in this setup affect more than the login page. The public base URL you configure at the proxy becomes the host name OpenProject uses when it builds links in notification emails, so a mismatch between the host name, the certificate and the URL users open will produce broken links in mail even when the browser works. Confirm the host name and HTTPS mode before you configure outbound email in the Configuring OpenProject outbound email and SMTP page, and test a notification link from a real mailbox rather than assuming it is correct.

Attachment handling and SSO depend on the same front door. Uploads that pass through OpenProject's servers are capped by the proxy's body size limit, such as client_max_body_size in nginx, so the limit you set here must match what your teams upload. If you move file storage to S3-compatible services as described in Storing OpenProject attachments in S3-compatible storage, direct uploads bypass that limit, which changes the proxy design. Likewise, every redirect URI registered with your identity provider must use the exact scheme and host name your proxy publishes, so plan the SSO pages, including those in OpenProject SSO and authentication, against the final address.

Sizing and resilience come last because the proxy is one more layer that must scale with users. Load balancers, proxy timeouts and the number of web and worker processes should be reviewed together with the figures in OpenProject hardware sizing by user count, and any move from Compose to Kubernetes or packages changes where trusted proxy settings live. Use OpenProject operations, backup and monitoring to add health checks on the public URL, and confirm with your vendor or environment which ingress or certificate options your chosen platform supports before you commit to a design.

How DeployOpen scopes and delivers OpenProject proxy and TLS work

DeployOpen approaches OpenProject behind a reverse proxy with TLS as part of the wider platform deployment inside your own infrastructure. We plan the publishing path first, then build, test and document it so your security and infrastructure teams can review every hop between users and the application.

How we scope

  • Map every hop from browser to OpenProject, including Apache, nginx, load balancer or bundled Caddy proxy.
  • Agree HTTPS mode, host name settings and certificate sources in the written scope before work starts.
  • Set upload size limits and decide whether attachments stay on local disk or move to S3-compatible storage.

How we build

  • Configure the proxy, host name and HTTPS mode, then confirm trusted proxy settings match your actual network path.
  • Test uploads at the agreed size limit and confirm that large files fail with a clear error rather than silently.
  • Add custom root CAs for outbound calls to internal services, then verify integrations and email connect over TLS.

How we hand over

  • Deliver a written configuration record with proxy files, host settings, certificate locations and renewal steps.
  • Document the verification checks your operators can rerun after upgrades, proxy changes or certificate renewals.
  • Walk your platform and security teams through the setup so they can review it against their own standards.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, agreed separately from the initial scope.
  • Re-check proxy and TLS settings when you move between Docker Compose, packages, Helm or Kubernetes.
  • Confirm each new OpenProject release against your proxy settings before you roll it out to users.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.