Skip to content

Configuration ​

Homelander is configured only with environment variables. There is no config file: on Docker they come from .env next to compose.yaml, on Railway from the service's Variables, locally from .env (read by make run).

The full, commented list is .env.example in the repository (each release ships it as env.example). A test keeps that file in step with the code, so it is always complete. Everything else (the community name, houses, modules, backup schedule, notifications) is set in the admin panel and kept in the database.

Secrets

APP_SECRET, TELEGRAM_BOT_TOKEN, TELEGRAM_WEBHOOK_SECRET, the BACKUP_S3_* keys and BACKUP_AGE_IDENTITY are secrets. Never commit them, paste them into a chat or an issue, or put them into a file in the repository.

Required ​

VariableWhat it is
APP_SECRETHMAC key for login codes and tokens, at least 32 bytes. Generate it with openssl rand -hex 32. Changing it later breaks links already sent and moves the Telegram webhook path.
PUBLIC_URLThe base address people open, e.g. https://homes.example.com. Must be https; plain http is allowed only for localhost. On Railway it follows the generated domain. No domain of your own? See Without your own domain.
TELEGRAM_BOT_TOKENThe bot token from @BotFather. Use a separate bot for development.

The first admin ​

VariableDefaultWhat it is
BOOTSTRAP_ADMIN_PHONE—Your phone in international format (+380…). The person who shares this number with the bot becomes the first admin. Used only while no admin exists; you can remove it afterwards.

Telegram ​

VariableDefaultWhat it is
TELEGRAM_UPDATESpollingHow the bot receives updates. polling needs no inbound connection (home servers, development). webhook is what Railway uses.
TELEGRAM_WEBHOOK_SECRET—Required with webhook. Telegram sends it back with every update. Only A-Z a-z 0-9 _ -; openssl rand -hex 32 fits.

Network ​

VariableDefaultWhat it is
HTTP_ADDR:8080Listen address. Leave it unset on Railway: the app then listens on $PORT.
PORT—Set by the platform (Railway), not by you.
TRUST_PROXYfalsetrue when a reverse proxy or tunnel sits in front (Caddy, Cloudflare Tunnel, Railway): the client IP is taken from X-Forwarded-For. Without it every visitor looks like the proxy, and rate limits are shared by everyone.

Storage and backups ​

VariableDefaultWhat it is
DATABASE_PATH./data/homelander.dbThe SQLite file; its folder is created on start. The Docker image sets /data/homelander.db (the volume), so leave it unset there.
BACKUP_DIRbackups/ next to the databaseLocal folder for backups.
BACKUP_DISABLEDfalsetrue: no scheduled backups whatever the panel says (e.g. a staging copy of production data). Manual backups still work.
BACKUP_S3_ENDPOINT, BACKUP_S3_BUCKET, BACKUP_S3_ACCESS_KEY_ID, BACKUP_S3_SECRET_ACCESS_KEY—An S3-compatible bucket every encrypted backup is copied to. All four are needed once any is set.
BACKUP_S3_PREFIXbucket rootFolder inside the bucket, such as homelander/.
BACKUP_S3_REGIONasked from the storageauto for Cloudflare R2.
BACKUP_S3_PATH_STYLEautopath (https://host/bucket, MinIO) or virtual (https://bucket.host).
BACKUP_AGE_IDENTITY—The backup private key, only while restoring on a host where you can set nothing but variables (Railway). Remove it right after.

The schedule, history and encryption key are set in the panel. See Backups and restore.

People and sessions ​

VariableDefaultWhat it is
DEFAULT_LOCALEukuk or en: the language used until an admin picks the site's default language in the panel (Site). Each person can switch.
DEFAULT_PHONE_REGIONUARegion used to read phone numbers typed without a country code.
SESSION_IDLE_TTL12hA session ends after this long without activity.
SESSION_MAX_TTL168hA session ends after this long whatever happens.

AI agents and updates ​

VariableDefaultWhat it is
MCP_REDIRECT_URISClaude, ChatGPT and loopbackComma-separated redirect URIs that AI agents may register. See AI agents (MCP).
UPDATE_CHECK_DISABLEDfalsetrue: never ask GitHub for a newer release. A release build checks once a day, anonymously, and shows "vX.Y.Z available" to admins.
LOG_LEVELinfodebug, info, warn or error.

Command line ​

The same binary runs the service and a few maintenance commands. In the container they are /homelander <command> (docker compose run --rm homelander <command>).

CommandWhat it does
homelanderRuns the service.
homelander backupTakes one backup now with the stored settings.
homelander backup keygenPrints a new age key pair for backup encryption.
homelander backup listLists backups in the local folder and in S3.
homelander restore --from <file | s3:<name> | s3:latest> [--identity <key file>] --yesRestores a backup. Stop the service first.

The maintenance commands need only DATABASE_PATH, BACKUP_DIR and the BACKUP_S3_* variables.

Endpoints ​

PathWhat it is
/The community's home page
/login, /registerSign in with a code from Telegram; apply to join
/adminThe admin panel
/myThe resident cabinet (installable as an app)
/p/<slug>Simple pages, such as the house rules
/mcpThe MCP server for AI agents
/healthzHealth check: {"status":"ok"}

Released under the Apache License 2.0.