Skip to content
Documentation

Configuration

Everything is environment variables. The complete reference lives in the repository README; this page covers what you actually touch and the two traps that cost people an evening.

The ones you must set

VariableWhereNotes
JWT_SECRETCoreSigns panel sessions. Core refuses to boot without it.
BEAM_JWT_SECRETCore, nodeSeparate random signing key for Beam tickets. Never reuse JWT_SECRET; give nodes only the Beam key.
CLUSTER_SECRETCore, nodeShared trust anchor inside one cluster. Never give it to a machine you do not own.
DB_PASSWORDCore, database
FRONTEND_URLCoreThe public panel URL, including scheme and port when non-default. Used for links and origin checks.

Core serves the panel and /api together. Leave PANEL_API_URL unset or empty: the panel uses /api on its own origin. A separate API hostname is not a supported browser layout because panel sessions use host-only cookies. An internal Docker hostname is not a browser address either.

Trap 1: an empty variable beats the default

A variable that is set but empty overrides the code default. Writing SOME_VAR: "${SOME_VAR:-}" in a compose file does not leave the default in place. It sets the variable to an empty string, and an empty string wins.

If you want the default, leave the variable out of the environment: block entirely.

Trap 2: a .env entry alone does nothing

A new variable must appear in the environment: block of the compose file. A .env file only expands ${VAR} where the compose file references it. Add it in one place and not the other, and the setting silently has no effect.

Check what actually reaches the container:

shell
docker compose config

Transport security

For the panel/API, choose HTTPS at your reverse proxy or Core's optional native listener. PANEL_TLS=self-signed generates a certificate for PANEL_TLS_HOSTS; PANEL_TLS=files loads PANEL_TLS_CERT_FILE and PANEL_TLS_KEY_FILE from mounted files. The HTTPS listener defaults to 25443 (PANEL_TLS_PORT), alongside HTTP on API_PORT (25500). It is off by default. A self-signed certificate needs explicit client trust; it is not automatically publicly trusted. Keep the HTTP port private when HTTPS is exposed. The installer configures these choices; the manual examples use a reverse proxy. See Reverse proxy and TLS.

GRPC_TLS_ENABLED controls whether the node-to-Core control channel is encrypted and certificate-pinned. It defaults to on. Set it to false only to switch it off, and then on both Core and every node: a TLS listener refuses a plaintext connection, and a TLS client refuses a plaintext server.

In-cluster nodes derive the certificate pin from CLUSTER_SECRET. A node you do not own gets GRPC_TLS_FINGERPRINT instead, which the panel writes into the deploy snippet for you. That is what lets such a node verify the connection without ever holding a cluster secret.

Secrets from files

Anything sensitive can come from a file instead of the environment, using the *_FILE convention, which is how Docker and Portainer secrets work:

shell
environment:
  DB_PASSWORD_FILE: /run/secrets/db_password
secrets:
  - db_password

Never commit real values. The repository ships a .env.example; your .env is git-ignored.

Routing mode

Decides how players reach a server:

  • ip_port - the node binds a host port from PORT_RANGE (25600-25699) and players connect to node-ip:port. The default, and it needs no gateway.
  • gateway - the node binds no host port at all; player traffic arrives through the managed edge. Required for machines behind NAT.
  • both - direct ports and a routed address at the same time.

Database connection pool

Core keeps its Postgres connections open and reuses them. The defaults suit a single Core:

VariableDefaultNotes
DB_MAX_OPEN_CONNS25Upper bound of connections per Core instance.
DB_MAX_IDLE_CONNS25Connections kept open between requests. Keep it well above 2: every query that finds no idle connection opens a new Postgres session, and that login is what limits a busy panel.
DB_CONN_MAX_LIFETIME30mRecycles a connection after this long.
DB_CONN_MAX_IDLE_TIME5mCloses a connection that sat idle this long.

With several Core replicas, keep replicas x DB_MAX_OPEN_CONNS plus everything else that connects below Postgres max_connections (100 by default).

Users' own storage

Users can connect their own S3 bucket under Account > Storage and send new backups and templates there. Settings > Features > Own storage decides who may: off, admins only, or everyone (the default). Turning it off never hides what is already stored: existing backups and templates on an own bucket can still be restored, downloaded and deleted, and only new data goes to platform storage.

An own bucket must be on a public address. To allow one on your LAN, such as a MinIO, list its address in STORAGE_PRIVATE_ALLOW (comma-separated CIDRs):

shell
STORAGE_PRIVATE_ALLOW=192.168.1.10/32

List the storage host as /32. Never list the network Redis, Postgres or the Docker/Swarm overlay run on (often 10.0.0.0/8): every user with own storage could reach those services. Loopback and link-local addresses stay refused even when listed, and nodes of BYON customers never get the list.

DYLARIS_HOSTED is for the DYLARIS service itself. Leave it unset.

NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.