All posts

CortenDesk 1.5.0 runs the full server stack

CortenDesk 1.5.0 puts the console, ID server and relay in one image, with APP_URL driving the server configuration.

Illustration of one container holding the console, ID server and relay components together.
One container stack1.5.0

CortenDesk 1.5.0 changes the deployment model: one image now runs the console, the ID server (hbbs) and the relay (hbbr). If you run separate server containers today, read the update steps before you move.

One image runs the stack

CortenDesk is now a complete drop-in replacement for the open-source RustDesk server. The bundled servers are CortenDesk Server, an AGPL fork of rustdesk-server.

This fixes the signed-in client failure reported as #19. Clients from 1.4.1 onwards encrypt their connection to the ID server whenever they are signed in to a console. The stock hbbs never completes that exchange, so connections from signed-in clients fail with Failed to secure tcp: deadline has elapsed.

With 1.5.0, the console, hbbs and hbbr run together in one container.

APP_URL drives the server settings

APP_URL is the setting that matters for the embedded stack. CortenDesk derives these values from it:

  • ID server address
  • Relay address handed to clients
  • Public key
  • Web client WebSocket URLs

On first boot, the key pair is generated into /data/rustdesk. The console picks it up by itself, so there is no separate key copy step between containers.

If you run your own servers, set CORTENDESK_EMBEDDED_SERVER=false to keep the 1.1.x behaviour.

WebSocket bridge and ports

The WebSocket bridge is internal. /ws/id and /ws/relay reach the servers over loopback, so a reverse proxy only has to forward 8080. You do not need an nginx stream block or published 21118/21119 ports unless something outside the container talks to them directly.

Ports are:

  • 8080 console and client API
  • 21115 NAT test
  • 21116 signalling, TCP and UDP
  • 21117 relay
  • 21118/21119 WebSocket, only if something outside the container talks to them directly

Updating from 1.1.x or earlier

Stop your hbbs and hbbr containers. Mount their data directory at /data/rustdesk.

The key pair and peer database are adopted as they are. Every device keeps its ID, and no client needs reconfiguring.

For the full walkthrough, including log checks and rollback steps, use the Upgrading to 1.5 wiki page.

How to update

Pull one of the 1.5.0 images:

docker pull marcpope/cortendesk:1.5.0
docker pull ghcr.io/marcpope/cortendesk:1.5.0

Read the full CortenDesk 1.5.0 release notes.