Skip to content

Single-Host Container Deployment

For multiple API or worker replicas, one-shot migrations, and optional shared login throttling, see Distributed Deployment.

Hubuum can be installed on one host with Docker Compose or rootful Podman Compose. The installer uses published container images by default and can deploy either:

  • all: backend API, frontend, Caddy, Postgres, and Valkey.
  • backend: backend API, Caddy, and Postgres.

Both modes can also use an existing Postgres server instead of creating a Postgres container.

Requirements

  • Linux host with inbound TCP 80 and 443 open.
  • DNS for the selected hostnames pointing at the host.
  • openssl and either Docker with the Docker Compose plugin or rootful Podman with podman compose.
  • git is only required when using --build-from-source.
  • Run the script as root or through sudo.
  • Rootless Podman is not supported by this installer because Caddy binds privileged host ports 80 and 443.

Container Engine

By default, the installer auto-detects a compose engine:

  • Docker Compose is preferred when both Docker and Podman are available.
  • Podman Compose is used when Docker Compose is unavailable.
  • Use --engine docker or --engine podman to force one engine.

Podman support is intended for rootful installs only.

All-In-One

Download the installer from the server release you are deploying. This example pairs server v0.0.18 with frontend v0.0.19 and pins the management scripts to the same server release:

curl --fail --location --output install-single-host.sh \
  https://raw.githubusercontent.com/hubuum/hubuum/v0.0.18/scripts/install-single-host.sh
sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --script-ref v0.0.18 \
  --server-tag v0.0.18 \
  --frontend-tag v0.0.19

Use the same downloaded installer for the variations below. For an existing installation, read Updates before running an installer or updater.

This creates /opt/hubuum by default, generates /opt/hubuum/.env, writes compose.yml and Caddyfile, pulls published images, and starts the stack.

HTTP Availability Model

Single-host installations run a primary and standby backend behind Caddy. The primary retains the default all runtime role, including background workers; the standby uses the HTTP-only api role. All-mode installations likewise run two frontend containers. Caddy actively checks backend /readyz and frontend HTTP health, excludes unavailable replicas, and retries connection failures against a healthy replica.

A Caddy reload can interrupt an existing connection. Retry read-only probes when appropriate; do not replay writes without checking whether they succeeded. The proxy and Compose health checks run every five seconds. See the rollout verification notes for the availability test's guarantees and limits.

The frontend BFF reaches the backend through a private Caddy listener, so it uses the same readiness-aware backend pool as direct API traffic. All-mode installs also use the bundled Valkey service for shared backend login throttling across the two API replicas.

This removes planned HTTP interruption during rolling-compatible updates. It does not provide host, Caddy, PostgreSQL, or Valkey high availability because those components still have one instance on the same machine. Background work also pauses while the primary is replaced. Database migrations must remain compatible with the old application version for the duration of the rolling update; a migration that blocks application queries can still cause request latency even though an HTTP replica remains online.

Whether an upgrade can roll depends on its pending migrations. The v0.0.17 to v0.0.18 transition requires downtime. Follow Updates; historical rolling-upgrade evidence does not make an offline migration safe to roll.

The standby owns its own database pool and application memory. Capacity-plan external PostgreSQL servers for both API pools, the primary's task-lease connection, migration/administration work, and operational headroom. See Distributed Deployment for the connection-budget formula.

Runtime metrics are also process-local. /metrics targets the worker-enabled primary, while /metrics/standby targets the HTTP-only standby; scrape both as separate Prometheus targets. They intentionally do not fail over to one another, because doing so would mix independent counters and produce invalid rates.

The installer also creates an empty /opt/hubuum/auth.toml for local-only authentication. This empty placeholder is mode 0644 so the non-root API can read it. Before adding provider credentials, apply the protected ownership and permissions described below. Use --auth-config to point the deployment at an existing external-auth TOML file instead.

By default, the installer starts the stack directly with Compose. Pass --systemd to also write /etc/systemd/system/hubuum.service, enable it, and start the stack through that unit.

Without explicit image options, the installer defaults to development main images. Use the release pins above for a released installation.

Optional monitoring

Add --monitoring during installation, or run sudo /opt/hubuum/update-single-host.sh --monitoring to enable Prometheus and Grafana later. Caddy serves /grafana/ and /prometheus/ on the frontend domain in all mode, or the API domain in backend mode. This works with each shared-host routing mode. Grafana has its own login; Prometheus uses a separate Caddy password gate. Both have generated credentials in the root-readable .env, private container ports, persistent volumes and pinned images.

The shared operator package documents credential retrieval, seven dashboards, SLOs, limits, notifications and a walkthrough. The installer loads those same dashboards and rules for both process targets; distributed deployments can consume the files directly or through Prometheus Operator. Updates preserve credentials and data, stop/uninstall preserve volumes, and explicit --purge removes them. External monitoring is needed to report a complete host outage independently.

Choosing Image Tags

Always choose versions explicitly for a released deployment. Use --tag to select a shared tag, or --server-tag and --frontend-tag to choose each independently. --backend-tag is an alias for --server-tag.

# Follow development builds for both applications.
sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --tag main

# Pin a compatible server and frontend pair.
sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --server-tag v0.0.18 \
  --frontend-tag v0.0.19

Per-application tags override --tag regardless of argument order. Explicit --backend-image and --frontend-image references take precedence over tag options for their application. Otherwise, tag options retain the configured image repository, including a custom registry, and replace its tag or digest.

The resulting image references are saved as BACKEND_IMAGE and FRONTEND_IMAGE in .env. Re-running either script without tag options keeps those choices, including installations previously configured to follow main. latest follows stable releases and main follows development builds when you run an update. A version tag such as v0.0.18 stays on that version; the scripts still pull the tag, so an image republished under the same tag can change. Use a full image reference with @sha256:... when you need immutable image contents. Each selected tag must exist in its image repository. Server and frontend versions are independent; check their compatibility records before pairing them. Use a version tag or digest when reproducibility matters. latest and main are moving choices, not compatibility declarations.

Image tag options do not change management-script refs (--script-ref) and cannot be used for source builds, which select code through --backend-ref and --frontend-ref when installing.

Frontend BFF And Public API

All-in-one installs expose both public hostnames:

  • --web serves the frontend.
  • --api serves the backend API directly for integrations and API users.

The frontend is still configured as a BFF-style service. Browser clients can call frontend-owned routes such as /api/v0/auth/login, /api/v1/..., and /api/hubuum/...; the frontend reaches the backend over the private compose network with:

BACKEND_BASE_URL=http://caddy:8081

The private Caddy listener load-balances both ready API replicas. Backend bearer tokens remain server-side for frontend browser flows, while the backend API is still publicly available on the API hostname.

Shared Host Routing

You can use the same DNS name and public 80/443 ports for both frontend and API by setting --web and --api to the same hostname. In that case, choose an explicit routing mode:

sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum.example.com \
  --shared-host-routing direct \
  --email admin@example.com

Modes:

  • direct: sends backend-owned paths such as /api/v0..., /api/v1..., /api-doc..., and /swagger-ui... through one load-balanced backend handler, routes /metrics and /metrics/standby to stable process targets, and sends everything else to the frontend. This is the recommended shared-host mode now that frontend-owned BFF routes live under /_hubuum-bff/....
  • prefixed: exposes the backend under /hubuum-api/, including stable /hubuum-api/metrics and /hubuum-api/metrics/standby process targets, and sends everything else to the frontend. This is useful if you want to avoid exposing backend routes at their native paths.
  • bff: sends all traffic to the frontend. The backend is not directly exposed by Caddy in this mode; use it only when frontend proxy coverage is the intended public API surface.

The frontend makes shared-host deployments easier by keeping internal/BFF routes under /_hubuum-bff/..., which does not collide with direct backend routes like /api/v1/....

Curl Install

The installer is self-contained enough to run directly from the repository:

curl -fsSL https://raw.githubusercontent.com/hubuum/hubuum/v0.0.18/scripts/install-single-host.sh \
  | sudo bash -s -- \
      --script-ref v0.0.18 --server-tag v0.0.18 --frontend-tag v0.0.19 \
      --web hubuum.example.com \
      --api hubuum-api.example.com \
      --email admin@example.com

Use a branch, tag, commit SHA, or PR ref by changing the raw GitHub URL. Pass the same ref with --script-ref so the installed management helpers come from the same source:

REF=v0.0.18
curl -fsSL "https://raw.githubusercontent.com/hubuum/hubuum/${REF}/scripts/install-single-host.sh" \
  | sudo bash -s -- \
      --script-ref "${REF}" --server-tag v0.0.18 --frontend-tag v0.0.19 \
      --web hubuum.example.com \
      --api hubuum-api.example.com \
      --email admin@example.com

Examples:

  • Branch: REF=my-feature-branch
  • Tag: REF=v0.1.0
  • Commit: REF=1a2b3c4d5e6f...
  • Pull request head: REF=refs/pull/123/head

For pull requests from forks, GitHub may not expose package/image changes yet; use --build-from-source when you need to test code from that PR rather than published images.

The script installs management helpers into the install directory:

  • install-single-host.sh
  • update-single-host.sh
  • single-host-rollout.sh
  • stop-single-host.sh
  • uninstall-single-host.sh

Backend Only

sudo ./scripts/install-backend.sh \
  --api hubuum-api.example.com \
  --email admin@example.com

Equivalent explicit form:

sudo bash ./install-single-host.sh \
  --mode backend \
  --api hubuum-api.example.com \
  --email admin@example.com

Existing Postgres

Pass --database-url to skip the managed Postgres container:

sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --database-url 'postgres://hubuum:secret@postgres.example.com:5432/hubuum?sslmode=require'

This uses the default single-role topology. To isolate the runtime credential, opt into split roles and provide both URLs:

sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --database-role-mode split \
  --database-url 'postgres://hubuum_runtime:runtime-secret@postgres.example.com:5432/hubuum?sslmode=require' \
  --migration-database-url 'postgres://hubuum_migrator:migration-secret@postgres.example.com:5432/hubuum?sslmode=require'

For split mode, the runtime and migration identities must be provisioned before installation. The migration URL is injected only into the transient migration container and the isolated restore executor; API and worker containers receive only the runtime URL. See PostgreSQL Database Roles for the required grants, managed-service workflow, and upgrade diagnostics.

Database TLS behavior follows the URL's sslmode:

  • sslmode=disable uses an unencrypted connection.
  • sslmode=prefer verifies the server certificate and hostname when the server offers TLS, but permits plaintext when the server does not support TLS.
  • sslmode=require requires TLS and verifies the server certificate and hostname.
  • URLs without sslmode disable TLS for localhost and IP loopback addresses. Other hosts use the verified prefer behavior.

The platform trust store is used by default. Set PGSSLROOTCERT to a PEM CA bundle for private certificate authorities, or to system to explicitly use the platform trust store. Custom CA bundles must be regular files no larger than 4 MiB.

The database must already exist and be reachable from containers on the host. Avoid localhost in the URL unless Postgres is inside the same container; from a container, localhost means the API container itself.

External Authentication Configuration

Pass an absolute host path with --auth-config to enable LDAP or another configured external identity provider:

sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --auth-config /etc/hubuum/auth.toml

The installer validates that the file exists and is readable, records its absolute host path in /opt/hubuum/.env, and bind-mounts it read-only as /etc/hubuum/auth.toml in the API container. The container receives HUBUUM_AUTH_CONFIG_PATH=/etc/hubuum/auth.toml automatically. The file is not copied into the installation directory.

Provider files must be readable by the API process inside the container. The standard image uses UID/GID 10001:10001; keep root ownership and grant that group read access before adding credentials. For example:

sudo install -o root -g 10001 -m 0640 auth.toml /etc/hubuum/auth.toml

For a custom image, use its configured process group instead of 10001. The installer preserves the contents and permissions of existing provider files; it only repairs permissions on its own empty local-only placeholder.

Re-running the installer without --auth-config preserves the stored host path. To use a different file while updating, pass it to the update helper:

cd /opt/hubuum
sudo ./update-single-host.sh --auth-config /etc/hubuum/auth-next.toml

The update helper validates and persists the new path before rolling both API containers. Editing the currently mounted host file still requires the API containers to be replaced because auth-provider configuration is loaded at startup. Run update-single-host.sh without --auth-config to roll them after such an edit.

See External Authentication for the TOML schema and LDAP examples.

Source Builds

The installer does not clone repositories by default. Use --build-from-source only when you need to build local images from Git refs that are not available as published container images:

sudo bash ./install-single-host.sh \
  --web hubuum.example.com \
  --api hubuum-api.example.com \
  --email admin@example.com \
  --build-from-source \
  --backend-ref main \
  --frontend-ref main

In source-build mode, the installer clones the repositories under /opt/hubuum/src and builds local/hubuum-api:single-host and local/hubuum-web:single-host.

Service Management

Systemd service management is opt-in. Install with --systemd to manage the stack with systemd:

sudo systemctl status hubuum
sudo systemctl restart hubuum
sudo systemctl stop hubuum
sudo systemctl start hubuum

The containers use restart: unless-stopped; a systemd unit adds an explicit host-boot contract. It runs compose up -d on start and compose down on stop from the install directory. An explicit systemctl restart therefore restarts the entire stack and is not the zero-downtime update path; use update-single-host.sh for application updates.

Use --service-name NAME to install the unit under a different name. Without --systemd, manage the stack directly with Compose.

Updates

The installer copies install-single-host.sh, update-single-host.sh, single-host-rollout.sh, stop-single-host.sh, and uninstall-single-host.sh into the install directory. Before pulling or building application images, the updater refreshes those management scripts and regenerates compose.yml and Caddyfile from the current installer:

cd /opt/hubuum
sudo ./update-single-host.sh

Use the same tag options to override and save the image choices for this and future updates:

# Follow each application's latest stable release after checking compatibility.
sudo ./update-single-host.sh --tag latest

# Pin only the server; keep the saved frontend choice.
sudo ./update-single-host.sh --server-tag v0.0.18

# Follow server development builds while keeping the frontend on stable releases.
sudo ./update-single-host.sh --tag main --frontend-tag latest

For image-based installs, the update command pulls the latest configured images. For source-build installs, it fetches the source checkouts and rebuilds the local app images. Existing .env values, including operator-added settings, are preserved except for explicit overrides; defaults introduced by a newer installer are appended only when their keys are missing. On an established rolling installation, it then queries the candidate's hubuum-admin --migration-mode. A failed or unrecognized preflight stops the update before application processes are stopped. The candidate must support this command (0.0.17 or newer).

Upgrade from v0.0.17 to v0.0.18

Schedule downtime for 2026-10-05-000001_collection_event_sinks:

  1. Stop all API, worker, and restore-executor writers.
  2. Take a PostgreSQL snapshot and retain matching v0.0.17 binaries and credentials.
  3. Re-run the v0.0.18 installer with --dir /opt/hubuum --script-ref v0.0.18 --server-tag v0.0.18 --frontend-tag v0.0.19, or apply the migration with the matching hubuum-admin --migrate. Reconcile grants when using split database roles.
  4. Start matching v0.0.18 server, worker, and restore-executor processes; check readiness and integration configuration before resuming writes.

The updater's migration preflight selects the offline path and leaves older processes stopped if migration fails. It does not take the PostgreSQL snapshot. Binary-only rollback is unsupported. To recover v0.0.17, stop the candidate and restore the pre-upgrade snapshot with matching older binaries; later writes are lost. Server v0.0.18 emits backup format 8 and accepts formats 6 and 7. An older server cannot restore format 8. See event migrations and backup compatibility.

The v0.0.16 to v0.0.17 transition also requires downtime and a pre-upgrade PostgreSQL snapshot. Follow that release's upgrade instructions before proceeding to v0.0.18. Do not apply historical rolling-upgrade instructions to either offline transition.

Rolling-compatible upgrades

With no pending offline migration, it performs the rolling sequence:

  1. Stop the all-role primary gracefully while the API-only standby continues serving HTTP. This drains old-version workers before schema migration.
  2. Run embedded database migrations as a one-shot command. If migration fails, restart the unchanged primary.
  3. Replace the primary backend, wait for /readyz, reload Caddy, and wait for its passive upstream failure state to clear.
  4. Replace the HTTP-only backend standby and the frontend standby in all mode, wait for their health checks, then reload Caddy.
  5. Replace the primary frontend in all mode and reload Caddy once more after it is healthy.

If a previous attempt left a primary unhealthy while its standby is healthy, the next run recovers and reloads that primary before touching the only usable standby. The helper also starts a missing or stopped managed PostgreSQL or Valkey service without recreating an existing infrastructure container.

Caddy, PostgreSQL, and Valkey remain running throughout this sequence. Newly pulled images for those infrastructure services are not activated by the rolling application update; schedule a maintenance window when those services themselves need replacement. A changed generated Caddyfile is applied by the normal Caddy reload in the rolling sequence.

Pass --auth-config /absolute/host/path.toml to change the read-only external authentication file as part of the same update and rolling replacement.

Updates use Compose directly even when the optional systemd unit exists. The unit remains active and continues to provide the host-boot and explicit-stop contract; it is not restarted during an application rollout.

Older installations can use a current copy of either the installer or updater, with or without tag options. Their existing full image references need no conversion: omitting tag options preserves the saved images, while explicit tag options replace the selected tags. Both scripts refresh the installed management helpers and generate the current Compose and Caddy configuration, including standby services for installations that predate rolling updates.

If the installed updater predates these options or automatic configuration refresh, use the pinned installer to refresh the scripts and saved configuration:

curl -fsSL https://raw.githubusercontent.com/hubuum/hubuum/v0.0.18/scripts/install-single-host.sh \
  | sudo bash -s -- --dir /opt/hubuum --script-ref v0.0.18

Add per-application tag options to change saved image choices after reviewing the upgrade requirements. The refreshed updater reads management scripts from the saved ref; changing image tags does not change that ref. Use the installer with --script-ref when changing the management-script version. The updater stops if configuration refresh fails to provide the required services.

See rollout verification for the historical adoption scenarios and adjacent-release checks. Those checks are scoped to each release's migration mode and do not promise rollback after an offline migration.

Re-running The Installer To Update

The installer is idempotent and doubles as an in-place updater. Re-running it against an existing install directory reuses the configuration recorded in .env (mode, hostnames, email, images, refs, ports, network subnet, container engine, and systemd service name) and preserves generated secrets and the managed database, so you only need to pass the arguments you want to change:

# Pull the latest configured images and apply any changed configuration in place.
curl -fsSL https://raw.githubusercontent.com/hubuum/hubuum/v0.0.18/scripts/install-single-host.sh \
  | sudo bash -s -- --dir /opt/hubuum --script-ref v0.0.18

# Change a single setting (for example, pin a new backend image) and reuse the rest.
sudo ./install-single-host.sh --server-tag v0.0.18 --frontend-tag v0.0.19

Any value passed explicitly on the command line overrides the stored one; everything else is taken from the existing .env. Migration preflight selects an offline or rolling application update. Infrastructure-container changes remain pending until the operator schedules their replacement.

Stop And Uninstall

Stop the stack:

cd /opt/hubuum
sudo ./stop-single-host.sh

Equivalent direct form:

sudo ./install-single-host.sh --stop --dir /opt/hubuum

Uninstall stops the stack and removes the systemd unit if one exists. By default, it preserves /opt/hubuum and compose volumes:

cd /opt/hubuum
sudo ./uninstall-single-host.sh

Use --purge to also remove compose volumes and the install directory:

cd /opt/hubuum
sudo ./uninstall-single-host.sh --purge

Parameters

Required:

  • --api: public backend API hostname served by Caddy.
  • --api-port: internal backend API listen port. Default: 8080.
  • --email: Let's Encrypt registration email.
  • --web: public frontend hostname. Required only in all mode.

Common optional parameters:

  • --stop: stop the installed stack and exit.
  • --uninstall: stop the stack, remove the systemd unit if present, and exit.
  • --purge: with --uninstall, also remove compose volumes and the install directory.
  • --dir: install directory. Default: /opt/hubuum.
  • --mode: all or backend. Default: all.
  • --database-url: existing Postgres URL. If omitted, the installer creates a managed Postgres container.
  • --database-role-mode: single (default) or split.
  • --migration-database-url: privileged Postgres URL required with an external database only in split mode.
  • --auth-config: absolute path to a host auth-provider TOML file. The API container mounts it read-only at /etc/hubuum/auth.toml.
  • --engine: auto, docker, or podman. Default: auto.
  • --tag: shared application image tag. Fresh install default: main; existing installs reuse saved images.
  • --server-tag / --backend-tag: backend tag, overriding --tag.
  • --frontend-tag: frontend tag, overriding --tag.
  • --backend-image: full backend image reference, overriding tag options. Default: ghcr.io/hubuum/hubuum-server:main.
  • --frontend-image: full frontend image reference, overriding tag options. Default: ghcr.io/hubuum/hubuum-frontend:main.
  • --postgres-image: managed Postgres image. Default: docker.io/library/postgres:18-alpine.
  • --valkey-image: frontend session/cache Valkey image. Default: docker.io/valkey/valkey:9-alpine.
  • --caddy-image: reverse proxy image. Default: docker.io/library/caddy:2-alpine.
  • --network-subnet: container bridge subnet and backend client allowlist. Default: 172.30.42.0/24.
  • --shared-host-routing: required when --web and --api are the same in all mode. Accepted values: bff, direct, prefixed.
  • --systemd: install and enable a systemd service.
  • --service-name: systemd service name. Default: hubuum.
  • --no-systemd: skip systemd unit installation. This is the default.
  • --script-base-url: base URL for downloading management scripts during curl-based installs.
  • --script-ref: Git ref used to derive raw GitHub management script URLs.
  • --build-from-source: clone repositories and build app images locally.
  • --backend-ref: source build backend Git ref. Default: main.
  • --frontend-ref: source build frontend Git ref. Default: main.
  • --recreate: regenerate generated secrets. The managed Postgres password is preserved, because the existing database volume was initialized with it and rotating it would break authentication. To reset the database, uninstall with --purge first, then reinstall.
  • --no-pull: skip pulling images before starting.

Managed PostgreSQL explicitly sets PGDATA=/var/lib/postgresql/data, matching its named-volume mount. This preserves the existing layout when refreshing configuration and avoids PostgreSQL 18's changed default data directory. It does not perform PostgreSQL major-version upgrades; those still require migration. The parent directory uses temporary storage to prevent PostgreSQL 18 from creating an anonymous volume; database contents remain in the persistent named volume. The restore executor has no HTTP listener, so its container health check measures process liveness, not restore success or database readiness.

Mounted Secret Files

The installer generates environment-backed configuration by default. Native binaries and custom container deployments can instead select file-backed credentials through --secret-source file --secret-file-root DIRECTORY or the corresponding HUBUUM_SECRET_SOURCE and HUBUUM_SECRET_FILE_ROOT variables. Both the server and administrator support the same file layout and explicit URL overrides. See the complete mounted-secret deployment example and split-role mounts.

The installer does not provision secret files or mounts. Merely adding these variables to a host .env file does not mount files or pass new variables into an existing Compose service; configure each workload's container environment and read-only mounts explicitly. Keep the migrator file isolated from API and worker containers in split mode.

Generated Environment

Backend:

  • HUBUUM_DATABASE_URL and DATABASE_URL: Postgres connection URL.
  • HUBUUM_BIND_IP=0.0.0.0
  • HUBUUM_BIND_PORT: internal backend API listen port. Default: 8080.
  • HUBUUM_LOG_LEVEL=info
  • HUBUUM_TOKEN_HASH_KEY: generated stable token hash key.
  • HUBUUM_REQUIRE_STABLE_TOKEN_HASH_KEY=true: prevents accidental ephemeral startup. The generated installation remains in compatible single-key mode; convert it with the staged procedure in Secret Sources when rotation is required.
  • HUBUUM_CLIENT_ALLOWLIST: defaults to the container bridge subnet.
  • HUBUUM_TRUST_IP_HEADERS=false
  • HUBUUM_TOKEN_LIFETIME_HOURS=24
  • HUBUUM_MAX_TOKEN_LIFETIME_HOURS=8760
  • HUBUUM_TOKEN_RETENTION_PURGE_ENABLED=true
  • HUBUUM_TOKEN_RETENTION_DAYS=30
  • HUBUUM_TOKEN_RETENTION_PURGE_INTERVAL_SECONDS=3600
  • HUBUUM_TOKEN_RETENTION_PURGE_BATCH_SIZE=1000
  • HUBUUM_LOGIN_RATE_LIMIT_MAX_ATTEMPTS=5
  • HUBUUM_LOGIN_RATE_LIMIT_WINDOW_SECONDS=300
  • HUBUUM_LOGIN_RATE_LIMIT_BACKEND: valkey in all-in-one mode and memory in backend-only mode.
  • HUBUUM_LOGIN_RATE_LIMIT_VALKEY_URL=redis://valkey:6379/1
  • HUBUUM_AUTH_CONFIG_HOST_PATH: absolute source path on the container host.
  • HUBUUM_AUTH_CONFIG_PATH=/etc/hubuum/auth.toml: read-only path inside the API container.

Frontend, all-in-one mode only:

  • BACKEND_BASE_URL=http://caddy:8081: private readiness-aware API listener.
  • VALKEY_URL=redis://valkey:6379/0
  • SESSION_TTL_SECONDS=28800
  • SESSION_PREFIX=hubuum:sess:
  • NEXT_PUBLIC_APP_NAME="Hubuum Console"

The backend creates the initial admin user and group on first startup. The generated admin password is not logged; reset it with hubuum-admin in the API container after installation.