Setting up the OpenProject collaboration server

OpenProject 17 documents need a Hocuspocus collaboration server for real-time editing, and package installs do not include it. This page explains how to add it, secure it and publish it behind your existing proxy and TLS.

On this page

Why OpenProject 17 needs a collaboration server for documents

Real-time collaborative documents in OpenProject 17 depend on a separate Hocuspocus collaboration server, and the DEB and RPM package installs do not include it. If your team runs a self-hosted OpenProject 17 instance from packages and wants several people editing the same document at once, you will need to add this component yourself, or move to an install method that ships it. Plan this before users ask for live editing, because the feature will not work until the server is running, reachable from the browser, and configured to talk to OpenProject.

Whether you need it depends on what your teams do with documents in OpenProject. If documents are mostly read, or edited by one person at a time, the core work package, project and planning features do not depend on the collaboration server, and you can defer the setup. If project pages, meeting notes or specifications are co-edited, the server becomes part of the service you operate. Confirm in the OpenProject 17 release notes and your own test instance which document features rely on it, and check that your install method is the one you expect before you schedule the work.

Treat the collaboration server as a second service with its own dependencies: a network path from users' browsers through the same proxy and TLS setup as OpenProject, a shared secret that OpenProject and the server both hold, and an owner who will apply updates alongside the main application. Decide early who owns that service, how it is monitored, and whether your chosen install method leaves room to run it. The sections that follow cover the Compose settings, the secret, package installs that lack the component, and placement behind your existing proxy.

How the collaboration server sits beside OpenProject and the proxy

Browser traffic starts at the TLS proxy, which splits it. Standard web requests go to the OpenProject application, while real-time document sessions go to the Hocuspocus collaboration server. OpenProject and the collaboration server both hold the same COLLABORATIVE_SERVER_SECRET and point to the same COLLABORATIVE_SERVER_URL, so the secret and URL must match on both sides. Check that the proxy forwards WebSocket upgrades for the collaboration path, and that both services stay inside the internal network boundary.

Browser traffic is split at the proxy, and OpenProject and Hocuspocus share one secret.

Choosing the right deployment path for the collaboration server

With Docker Compose, the collaboration server is configured through the Compose environment rather than added as a separate package. The OpenProject stack expects two settings to be consistent: COLLABORATIVE_SERVER_URL tells the web and worker containers where to reach the server, and COLLABORATIVE_SERVER_SECRET is the shared secret both sides use to trust each other. The documented default secret should be replaced before any shared or production use.

  • Set the server URL: COLLABORATIVE_SERVER_URL must resolve from the OpenProject containers, which may differ from the public address your users open in a browser.
  • Replace the default secret: Generate a long random value and store it in your normal secrets handling, not in a shared Compose file.
  • Keep the secret identical: Any change to COLLABORATIVE_SERVER_SECRET must be applied to every service that reads it, then the stack restarted.
  • Plan the proxy path: Decide how the collaboration traffic reaches the server through your reverse proxy and TLS setup, so WebSocket connections are not blocked.
  • Check after each upgrade: Compare your overrides with the Compose files of the release you deploy, since variable names can change between versions.

After the change, open a collaborative document in two browser sessions and confirm that edits sync in real time.

Configuration options for the collaboration server and when each fits

This table compares the settings and install paths that decide how the Hocuspocus collaboration server is wired into OpenProject 17. Read each row for the setup it fits and the item to confirm before you change a value. The main takeaway is that the URL, the secret and the reachable address must agree, and package installs need a separate collaboration server.

OptionWhen it fitsWhat to confirm
COLLABORATIVE_SERVER_URLDocker Compose installs where OpenProject reaches the collaboration server by its internal service addressThe value resolves from the OpenProject container and matches the service name and port in your Compose file
COLLABORATIVE_SERVER_SECRET (default)Only a short test on an isolated host, since the default secret is public knowledgeReplace it before any user logs in, and confirm no environment file still carries the default
COLLABORATIVE_SERVER_SECRET (overridden)Every production Compose deployment, with a long random value stored in your secrets handlingThe same value is set for both the web and collaboration containers, and a restart picks it up
Public address behind the proxyUsers edit documents in the browser, so the collaboration endpoint must be reachable through the same host name and TLSThe proxy routes the collaboration path to the server and keeps WebSocket upgrades enabled
Internal address onlyThe collaboration server should not be exposed directly to users and only the OpenProject service calls itBrowsers still need a route to the public path, so confirm which address the client code uses
Package install (DEB or RPM)Ubuntu, Debian, RHEL or SLES installs, which do not include the Hocuspocus serverWhether you deploy the server separately and point COLLABORATIVE_SERVER_URL at it, using a supported setup from the vendor docs

How to add the collaboration server step by step

This sequence adds the Hocuspocus collaboration server to a Docker Compose OpenProject 17 install, so real-time collaborative documents sync between users and the setup is checked at each stage.

  1. Confirm the OpenProject 17 version

    Start by checking which OpenProject version the instance runs. Real-time collaborative documents in OpenProject 17 need a Hocuspocus server, so the work only applies to 17.x. Confirm the running version in the administration area or by checking the image tag in your Compose file, and confirm your install method. DEB and RPM package installs do not include the Hocuspocus server, so a package install needs a separate plan before you continue. You are done when you have the exact version and install method written down.

  2. Replace the default shared secret

    Set COLLABORATIVE_SERVER_SECRET in your environment file to a long, random value that only your team holds. The default secret shipped with the Compose setup should be overridden, because OpenProject and the collaboration server use it to trust each other. Generate the value with a password manager or a command such as openssl rand, and store it with your other deployment secrets. You are done when the default value no longer appears anywhere in your configuration files.

  3. Set the collaboration server URL

    Set COLLABORATIVE_SERVER_URL to the address that browsers and the OpenProject container will use to reach the collaboration server, which should be the public host name you publish through your proxy. Keep the scheme and path consistent with the route you will configure in step five. Ask your network team to confirm that the chosen host name resolves inside your environment. You are done when the variable is set and the value matches the host name in your proxy plan.

  4. Start the Compose stack

    Apply the changes and recreate the containers so that the new variables and the collaboration service take effect. Run the Compose command from the directory that holds your compose file, then list the containers and confirm that the collaboration service is running alongside the web and worker containers. Review its logs for startup errors, especially mismatched secret messages. You are done when all services report a running state and the logs show no authentication or connection errors.

  5. Route the collaboration path through the proxy

    Add a route in your existing reverse proxy that sends the collaboration path to the collaboration service, using the same host name and the same TLS certificate as OpenProject. WebSocket connections must be passed through, so confirm that your proxy forwards upgrade headers for that path. Ask your platform team to check whether the proxy has a request timeout that would close long-lived connections. You are done when the collaboration endpoint answers over HTTPS through the public host name and the certificate chain is valid in a browser.

  6. Verify document sync in two sessions

    Open the same work package or project document in two separate browser sessions, for example one normal window and one private window signed in as a different user. Type text in the first session and confirm it appears in the second without a page reload. Then reverse the direction and confirm the change returns. If text does not sync, check the browser console for failed WebSocket connections and review the proxy and collaboration logs. You are done when edits appear in both sessions in both directions.

What to do when your package install lacks the collaboration server

The first decision is whether to move to Docker Compose or to run the collaboration server beside your package install. The OpenProject 17.0.0 release notes state that DEB and RPM package installs do not include the Hocuspocus server that real-time collaborative documents need. If your instance runs on the packaged install for Ubuntu, Debian, RHEL or SLES, you cannot enable those documents by changing a setting alone. Moving to Docker Compose brings the server in with the official configuration, but it is a platform change with its own data migration, backup and proxy work. Running Hocuspocus separately keeps the package layout but adds a service your team must install, patch and monitor. Decide which of these you can own for the life of the instance before you touch the configuration.

Ask the vendor and your own team a short set of questions before choosing. With OpenProject, ask which Hocuspocus build and version pairs with your exact OpenProject release, where that build is distributed, and whether the package maintainers document a supported way to run it. Ask how the collaboration server authenticates to OpenProject, where the shared secret is set, and how it is rotated. On your side, confirm who will patch the Node-based service, which host or container it runs on, how it reaches the same host name and TLS path as the main application, and whether your change process allows a second service in production. Also confirm that your network allows the browser to open the collaboration connection through your existing proxy.

Do not assume the steps for a separate server. Confirm the exact installation, configuration keys and secret handling against the release notes for your version before you plan the change, because the supplied material covers the Compose settings (COLLABORATIVE_SERVER_URL and COLLABORATIVE_SERVER_SECRET) but not a standalone procedure. Test the setup on a copy of your instance first, open a collaborative document from two browsers, and record the result. Include the rollback path in the change plan, since a failed collaboration service should not block ordinary work package editing.

Securing the shared secret and the collaboration traffic

The collaboration server holds live document content and trusts OpenProject through a shared secret, so the secret, the network path and the logs all need deliberate handling. The cards below cover the controls that connect those pieces and the checks to run before and after each change.

Replace the default secret

The Docker Compose setup ships with a default value for COLLABORATIVE_SERVER_SECRET, and that value is public to anyone who has read the install documentation. Set a long random value before the first start, using a generator with enough entropy, and confirm that both the OpenProject container and the collaboration container receive the same string. A mismatch usually shows up as documents that fail to load or save, so test a document edit immediately after the change.

Compose install docs

Keep the secret out of version control

Compose files, environment files and install scripts often end up in Git repositories, configuration management repos or shared tickets. Store the value in your secrets manager or an environment file with restricted permissions, and reference it rather than typing it into the docker-compose.yml. Check the repository history as well as the current tree, because a secret committed once remains exposed even after it is deleted. If it was committed, treat it as compromised and rotate it.

Restrict which services reach the server

The collaboration server should accept connections only from the OpenProject application container, not from user networks, other tenants or the public internet. In Compose, keep its port off the host and attach it to the internal network that OpenProject uses. For packaged or external deployments, apply firewall rules that allow only the OpenProject hosts. Verify the rules from a machine outside that set, since a reachable port with a valid secret is a path to document content.

Terminate TLS on the public path

Browsers connect to the collaboration server through the same host name and proxy as OpenProject, so the public path carries document edits and session traffic. Serve it over HTTPS with the same certificate chain as the main site, and make sure the proxy forwards the WebSocket upgrade headers the server needs. Traffic between OpenProject and the collaboration server runs on the internal network, so decide whether that hop also needs TLS under your own network policy. Check both paths with a browser developer tools session.

Control log handling for document content

Collaboration servers can log connection events, document identifiers and errors, and debug logging may capture more of the payload than operations need. Set log levels to the minimum that supports troubleshooting, and confirm which fields your container runtime or log shipper stores and for how long. Restrict access to those logs, since they may reveal which work packages are being edited and by whom. Ask your compliance team to classify these logs with the same rules as the OpenProject application log.

Rotate the secret with a planned restart

Changing the secret requires updating both containers and restarting them, so active editing sessions will be interrupted. Schedule the change in a maintenance window, announce it to project teams, and update the value in the secrets store first so that the restart reads the new value. After the restart, open a test document from two sessions and confirm that edits sync. Record the rotation date and the owner so the next rotation has a clear reference point.

Running the collaboration server after go-live

The collaboration server is a separate process that OpenProject 17 depends on for real-time document editing, so it needs its own monitoring, not just the OpenProject web and worker checks. Set up a process or container health check for the Hocuspocus service, alert when it stops or restarts repeatedly, and confirm that a test document still opens and syncs between two browsers after each change. Check the Compose service logs for connection errors from the main application, because a healthy web container can still show a broken editing experience when the secret or URL no longer matches. Record the exact COLLABORATIVE_SERVER_URL and COLLABORATIVE_SERVER_SECRET values in your runbook so that the on-call engineer can compare them quickly.

Every OpenProject upgrade is a point where the collaboration server must be checked again. Read the release notes for the target version before you upgrade, confirm that the collaboration component version in your deployment matches what that release expects, and restart it in the same change window as the application. Keep the shared secret unchanged during upgrades unless you plan a coordinated rotation, because a mismatch stops documents from loading while the rest of OpenProject looks normal. For package installs, confirm where the separately installed server is managed by systemd and that it starts after the main services. Schedule a smoke test of collaborative editing as a standard step in every upgrade checklist.

Backups need a specific answer from the vendor or your own testing. Ask OpenProject which data the collaboration server stores itself, such as any temporary document state, and which content lives in the OpenProject database and attachments. Based on that answer, your backup plan for the main database and attachment storage may already cover documents, but a restore test should prove that a restored instance opens and edits collaborative documents correctly with a matching secret. Assign ownership in the runbook: name one team for the collaboration server, usually the same platform team that runs OpenProject, and define who approves secret rotation, who receives its alerts and who signs off the post-upgrade test.

Questions teams ask before setting up the collaboration server

Do we need the collaboration server for OpenProject 17?

Yes, if your teams plan to edit documents together in real time. Real-time collaborative documents in OpenProject 17 need a Hocuspocus server, and the DEB and RPM package installs do not include one. Without it, the document feature in your instance will not work as your users expect, so check this before you roll out OpenProject 17 to a team that relies on shared documents. The OpenProject 17.0.0 release notes describe the requirement. Confirm the exact behavior of your installation method in your own test environment before you rely on it.

Does a Docker Compose install need extra work for the collaboration server?

Some configuration is required, but the Compose setup is the simplest path. The Compose file uses COLLABORATIVE_SERVER_URL and COLLABORATIVE_SERVER_SECRET, and the default secret should be overridden before the instance serves users. Your work is to set a strong, unique secret, point the URL at the address users actually reach through your proxy, and restart the stack so both services share the same value. Read the OpenProject Docker Compose documentation for the current variable names and layout before you edit your files.

What does the internal team need to provide for this setup?

Your team needs people who can edit the Compose or package configuration, manage secrets, and control the reverse proxy and TLS certificates. The main inputs are the public host name, the internal address of the collaboration server, a secret store for the shared value, and access to the proxy configuration so that the collaboration path is routed correctly. If you run packages, someone must also decide how to deploy the Hocuspocus component, since it is not included. Someone should own the verification steps, including testing real-time editing with two browser sessions after each change.

How long does a collaboration server setup take, and what drives that?

The duration depends on how your OpenProject instance is installed, how your proxy and TLS are already managed, and how many approvals your change process requires. A Compose install with a single host and an existing proxy is usually the shortest path. Packaged installs, separate hosts, custom certificate authorities, or a proxy managed by another team add steps and coordination. Ask any provider for a written plan that lists each step, the systems touched, and the test evidence they will deliver, rather than a single overall estimate.

Can our team set up the collaboration server alone?

Yes, a team with Linux, container and proxy skills can usually complete the setup alone, provided they follow the official documentation and test the result. The hard parts are rarely the variables themselves. They are keeping the shared secret consistent across services, routing the collaboration traffic through the same proxy and TLS setup as the main application, and testing real-time editing with multiple users. If your team lacks one of those skills or cannot run a test environment first, a partner can reduce the risk.

What does a partner's scoped engagement for this work include?

DeployOpen plans, implements and documents self-hosted open-source platforms inside your own infrastructure, so a scoped engagement for the collaboration server would cover the agreed items in writing before work starts. Typical items include reviewing your current deployment, configuring the collaboration service and shared secret, placing it behind your existing proxy and TLS, testing real-time editing, and handing over runbooks. Scope, deliverables and timelines are agreed in writing, and a quote follows from that scope. Ask for the list of tested cases and the rollback steps in any proposal.

What should we check after the collaboration server is running?

Check that two users can edit the same document at the same time, that changes appear without a page reload, and that the connection works through the public host name and TLS. Also confirm that the secret is not the default value, that it is stored in your secret management process, and that restarts and upgrades keep the two services in step. Repeat these checks after each OpenProject upgrade, since the collaboration component must stay compatible with the release you run.

How scope and cost follow the install method

Cost and effort depend on three things: the install path, the proxy and TLS setup, and the number of environments. A Docker Compose install that adds the collaboration server is a different job from adding it to a package install, where the Hocuspocus server is not included and has to be deployed and wired in by hand. Each path changes which configuration files, service units or containers need to be touched, how the shared secret is distributed, and how much testing is needed before the change reaches users. The reader should ask the partner to state which install path the quote assumes and what would change if the instance runs on a different path.

The proxy and TLS setup adds its own scope. The collaboration server has to sit behind the same host name, certificate and proxy rules as the main application, so the quote should say who owns the reverse proxy configuration, whether WebSocket traffic is already passed through, and whether any trusted proxy or custom root CA work is included. Each environment, usually development, test and production, repeats the configuration, the secret rotation and the verification steps. Ask whether the quote is per environment or covers all of them, and whether a staging run is included before production.

Prices are not published, and a quote follows the written scope. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so the quote is only as clear as the scope behind it. Ask for a one-time setup fee listed separately from any recurring support or upgrade retainer, and confirm what happens when the next OpenProject feature release changes the collaboration server requirements. A written scope that names the install path, the proxy, the environments and the handover documents makes it possible to compare offers on equal terms.

How DeployOpen scopes and delivers the collaboration server

DeployOpen treats the Hocuspocus collaboration server as part of the OpenProject deployment, not an afterthought. We agree the scope in writing, add the service to your existing Compose, package or other install, and verify that real-time documents work through your proxy and TLS setup before handover.

How we scope

  • Confirm your OpenProject 17 version and whether you run Docker Compose, a DEB or RPM package, or another install.
  • Identify which packaged or existing hosts need a Hocuspocus service added, and where it will run.
  • Record the proxy, host name, TLS and secret handling decisions in the written scope before work starts.

How we build

  • Set the collaboration server URL and a replaced shared secret in the Compose configuration for your environment.
  • Place the collaboration service behind the same reverse proxy and TLS termination used for OpenProject.
  • Test document editing with several users, then check the logs for connection and authentication errors.

How we hand over

  • Deliver a written record of the settings changed, the secret storage location and the proxy rules used.
  • Provide a short runbook covering restarts, version alignment during upgrades and where to look when documents fail.
  • Walk your platform team through the verification steps so they can repeat them after future changes.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Ask any partner for a quote built from the written scope, including what recurs after the initial work.

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.