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 tokensA key that lets your scripts call the panel's API as you 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
/56network 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 proxyA nearby reverse proxy whose forwarded headers are believed, which is a connection from one of these ranges:
| Range | Covers |
|---|---|
127.0.0.0/8 | Loopback, such as a proxy on the same host |
10.0.0.0/8 | Private networks |
172.16.0.0/12 | Private networks, including Docker's own |
192.168.0.0/16 | Private networks, such as most home routers |
::1 | IPv6 loopback |
fc00::/7 | IPv6 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: httpsmarks the session cookiesSecureand lets passkeysSign in with Face ID, Touch ID, or a security key work. - Hostname —
X-Forwarded-Host, or theHostheader when it's missing, gives the hostname that passkeysSign in with Face ID, Touch ID, or a security key, 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 proxyA nearby reverse proxy whose forwarded headers are believed, 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
PasskeysSign in with Face ID, Touch ID, or a security key need no settings. The panel ties each one to the hostname in the browser when you add it.
- Where they work — A domain name served over HTTPS, such as
bot.example.com, orlocalhost. On an IP address such as127.0.0.1, or on plain HTTP with a domain name, the Sign-in and security page explains that passkeysSign in with Face ID, Touch ID, or a security key aren't available there. - One hostname — A passkeySign in with Face ID, Touch ID, or a security key added at one hostname doesn't work at another, so moving the panel to a new hostname means adding your passkeysSign in with Face ID, Touch ID, or a security key again.
- Other sign-ins — Passwords and authenticator codes work at any address.
tip
A passkeySign in with Face ID, Touch ID, or a security key 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.
| Path | Purpose | Protection |
|---|---|---|
/health | Liveness check, always "ok" | None |
/ready | Readiness checkThe /ready endpoint; it only asks if the database is up against the database | None |
/invite, /join | The invite pageA public page that hands out short-lived Discord invites and its sub-paths | reCAPTCHAGoogle's checkbox that keeps bots off the invite page, and 5 join attempts per 10 minutes from one address |
/webhooks/ | Mapped webhooksA URL that turns signed JSON into a Discord message | HMAC signatureThe hash a sender adds so the webhook trusts the request |
/media/ | The invite page's logo and banner images | None |
/assets/, /favicon.svg | The built files of the control panel and the invite pageA public page that hands out short-lived Discord invites | None |
/api/v1/ | The control panel's API | Sign-in or an access tokenA key that lets your scripts call the panel's API as you, except setup and sign-in, and 300 requests a minute from one address |
| Every other path | The control panel's page | Sign-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 pageA public page that hands out short-lived Discord invites, 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 codeOne-time code from the container log that creates the Owner 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.