Skip to main content

Remote Access

Reach the control panel from other devices while keeping it private, and serve the public invite and webhook paths through HTTPS.

Default Binding

The control panel listens on every address inside the container, and the port mapping or a reverse proxy decides who can reach it.

With docker run --net=host, the control panel listens on every address of the Docker host, so any device that can reach the host can open the panel. To limit it to programs on that host, replace --net=host with -p 127.0.0.1:22604:22604, or put the panel behind a reverse proxy.

Compose publishes the control panel's port on every IPv4 and IPv6 address of the Docker host, so any device that can reach the host can open the panel. To limit it to programs on that host, change the mapping in compose.yml to "127.0.0.1:22604:22604", or put the panel behind a reverse proxy.

The control panel always listens on port 22604 inside the container. To open it on another host port, change the host side of the mapping, such as -p 8080:22604 with docker run in place of --net=host, or "8080:22604" in compose.yml. With --net=host, the port is always 22604.

Why Keep the Panel Private

  • Plain HTTP inside — The web service speaks plain HTTP, so passwords, session cookies, and access tokens would cross the network unencrypted.
  • Sign-in limits are per address — The panel allows 10 failed sign-ins in 15 minutes from one address, or from one /56 network for an IPv6 visitor, which slows down guessing but doesn't stop someone with many addresses. A Sign-in locked notification can tell you when an address reaches the limit.
  • Fewer moving parts — A private panel can only be reached by people you let onto the network.

For remote use, it is recommended to reach the panel through a private VPN, or through a reverse proxy that adds HTTPS and limits who can connect.

Put HTTPS in Front

Run a reverse proxy on the Docker host and point it at 127.0.0.1:22604, or at the host port you mapped. Caddy is one option, and it gets certificates and adds the forwarding headers the web service reads.

bot.example.com {
  reverse_proxy 127.0.0.1:22604
}

Any other proxy works the same way if it sets X-Forwarded-For and X-Forwarded-Proto, and either sets X-Forwarded-Host or passes the browser's Host header through. There's no address to configure, because the web service reads each request's own address.

Forwarded Headers

The web service reads X-Forwarded-* headers only from a trusted proxy, which is a connection from one of these ranges:

RangeCovers
127.0.0.0/8Loopback, such as a proxy on the same host
10.0.0.0/8Private networks
172.16.0.0/12Private networks, including Docker's own
192.168.0.0/16Private networks, such as most home routers
::1IPv6 loopback
fc00::/7IPv6 private networks
  • Client address — Sign-in limits and API rate limits use the address from X-Forwarded-For. The list is read from the end, stopping at the first public address, so a chain of proxies on your own network still reports the real visitor.
  • HTTPS — X-Forwarded-Proto: https marks the session cookies Secure and lets passkeys work.
  • Hostname — X-Forwarded-Host, or the Host header when it's missing, gives the hostname that passkeys, the invite page's public link, and link previews use.
  • Public addresses — Headers from any other address are ignored, so a visitor who reaches the port directly can't fake their address.

warning

Every private address counts as a trusted proxy, so a device on your network that can reach the port directly can set these headers itself. It is recommended to publish the port on loopback only, with -p 127.0.0.1:22604:22604 for docker run or "127.0.0.1:22604:22604" in compose.yml, and let only the proxy connect.

Passkeys and the Address

Passkeys need no settings. The panel ties each one to the hostname in the browser when you add it.

tip

A passkey added at http://localhost:22604/, for example through an SSH tunnel, works only at localhost. It is recommended to add the passkeys you use every day at the HTTPS address you plan to keep.

Public Routes

Some paths answer without signing in, so a reverse proxy can expose them while keeping the control panel private.

PathPurposeProtection
/healthLiveness check, always "ok"None
/readyReadiness check against the databaseNone
/invite, /joinThe invite page and its sub-pathsreCAPTCHA, and 5 join attempts per 10 minutes from one address
/webhooks/Mapped webhooksHMAC signature
/media/The invite page's logo and banner imagesNone
/assets/, /favicon.svgThe built files of the control panel and the invite pageNone
/api/v1/The control panel's APISign-in or an access token, except setup and sign-in, and 300 requests a minute from one address
Every other pathThe control panel's pageSign-in, because the page loads its data from the API

An invite or webhook path answers only while an enabled Web applications feature uses it, and a path that no enabled feature uses returns HTTP 404. To publish only the invite page, expose your invite path, /media/, /assets/, and /favicon.svg.

Protect the First-Run Page

Until the owner account exists, the setup screen asks for the setup code from the container log, so only someone who can read that log can create the account. It is still recommended to finish First-Run Setup on the Docker host before you open the panel to any other device.