Files
paseo/public-docs/hub/self-hosting/index.md
T
Mohamed Boudra 1bd9b4673d Update the Hub guides for self-contained triggers (#10375)
* docs(hub): update guides for self-contained triggers

* docs(hub): match Activity and integration controls to the dashboard

* docs(hub): clarify overview and legacy bundle deployment
2026-11-21 15:34:59 +07:00

6.4 KiB

title, description, nav, order, category
title description nav order category
Self-hosting Hub Run Hub locally with its embedded database, or deploy it with PostgreSQL, Docker Compose, or Fly. Self-hosting 77 Hub

Self-hosting Hub

The shortest path to a local Hub is one command:

npx @getpaseo/hub

Open http://localhost:3000. A fresh Hub creates its embedded database and authentication secret, then guides you through creating the operator account and setting up the GitHub, Linear, Slack, or Discord apps you need.

Follow the quickstart to connect Slack over Socket Mode and run your first trigger without a public server.

Local data

Without DATABASE_URL, Hub stores an embedded PGlite database and its generated authentication secret under $XDG_DATA_HOME/paseo-hub. If XDG_DATA_HOME is not set to an absolute path, Hub uses ~/.local/share/paseo-hub. Both survive restarts.

Set a custom directory with PASEO_HUB_DATA_DIR:

PASEO_HUB_DATA_DIR=/path/to/paseo-hub-data npx @getpaseo/hub

Embedded mode supports one Hub process per data directory and fits a personal or single-process Hub. Back up the whole data directory before upgrading or moving it.

Public addresses

Hub defaults to http://localhost:3000. That address is enough for the dashboard, daemons, Slack Socket Mode, Discord gateway, and schedules.

A public HTTPS address is required for:

  • GitHub event webhooks (GitHub repository access still works without webhooks)
  • Linear OAuth callbacks and webhooks
  • Slack Webhooks transport (Socket Mode does not need HTTPS)
  • Inbound webhook triggers (/webhooks/wh_...)
  • Open in Paseo links appended to conversation replies

Set your public HTTPS origin before starting Hub:

PASEO_HUB_APP_URL=https://hub.example.com npx @getpaseo/hub

If you change the public origin later, update callback and webhook URLs in your provider apps. The Apps page generates URLs for the origin Hub is currently using.

PostgreSQL

Set DATABASE_URL to use PostgreSQL instead of the embedded database:

DATABASE_URL=postgres://paseo:password@localhost:5432/paseo_hub \
  npx @getpaseo/hub

Use PostgreSQL for a durable server deployment, multiple Hub processes, or standard database backups. Migrations run automatically at startup, and Hub refuses to listen if a migration fails.

The database also stores Hub's generated authentication secret. Set PASEO_HUB_AUTH_SECRET only when your platform injects that secret from an external secret store.

While set, Hub uses the override without replacing the stored secret. Changing the active secret signs dashboard users out, while running executions keep their existing credentials until they end.

App configuration

The instance operator configures GitHub, Linear, Slack, and Discord under Apps. Hub verifies credentials before saving them in its database and starts the same provider runtime used by environment-configured deployments.

Environment variables remain available when your deployment manages secrets outside Hub. A complete environment configuration takes precedence over a saved application and appears as Managed by environment under Apps.

# GitHub
GITHUB_APP_SLUG=
GITHUB_APP_ID=
GITHUB_APP_CLIENT_ID=
GITHUB_APP_CLIENT_SECRET=
GITHUB_APP_PRIVATE_KEY=          # or GITHUB_APP_PRIVATE_KEY_PATH
GITHUB_WEBHOOK_SECRET=

# Linear
LINEAR_CLIENT_ID=
LINEAR_CLIENT_SECRET=
LINEAR_WEBHOOK_SECRET=

# Slack Socket Mode
SLACK_TRANSPORT=socket
SLACK_APP_ID=
SLACK_APP_TOKEN=

# Slack Webhooks instead of Socket Mode
SLACK_TRANSPORT=webhook
SLACK_APP_ID=
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
SLACK_SIGNING_SECRET=

# Discord
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_BOT_TOKEN=

Read the setup guide for each provider:

Bootstrap from environment

Browser setup is the default for a fresh database. For an unattended deployment, create the first operator from environment variables instead:

PASEO_BOOTSTRAP_ORGANIZATION=My organization
PASEO_BOOTSTRAP_OWNER_EMAIL=me@example.com
PASEO_BOOTSTRAP_OWNER_PASSWORD=replace-with-a-temporary-password

The password must be at least 12 characters. Sign in once, replace the password in the dashboard, and remove PASEO_BOOTSTRAP_OWNER_PASSWORD. Hub keeps the account and organization.

Docker Compose

The Hub repository includes a Compose stack for Hub and PostgreSQL:

git clone https://github.com/getpaseo/hub.git
cd hub
cp .env.example .env
docker compose up -d

Open http://localhost:3000 and complete browser setup. For a public deployment, set PASEO_HUB_APP_URL and any reverse-proxy settings in .env before starting the stack.

The stack publishes Hub on port 3000 and stores PostgreSQL data in a named volume. The published container image is ghcr.io/getpaseo/hub:latest.

HTTPS with Caddy

Compose serves plain HTTP on port 3000. Run Caddy on the same host to terminate TLS:

hub.example.com {
  reverse_proxy 127.0.0.1:3000
}

Point hub.example.com at the host and open ports 80 and 443. Caddy obtains and renews the certificate.

Set these values in .env:

PASEO_HUB_APP_URL=https://hub.example.com
PASEO_HUB_TRUSTED_CLIENT_IP_HEADER=x-forwarded-for

To keep port 3000 off the public interface, change the hub port in compose.yml to "127.0.0.1:3000:3000".

Fly

Clone the repository and create an app and database under names you control:

git clone https://github.com/getpaseo/hub.git
cd hub
fly apps create your-hub
fly postgres create --name your-hub-db
fly postgres attach your-hub-db -a your-hub

Deploy the Dockerfile and give Hub its public origin:

fly deploy -a your-hub \
  -e PASEO_HUB_APP_URL=https://your-hub.fly.dev

Open the Fly URL and complete browser setup, or set the bootstrap environment before deploying.

Keep one machine running continuously. Hub holds Slack Socket Mode and Discord gateway connections, runs the schedule clock, and dispatches events to daemons, so a stopped machine misses events.

Upgrades

Pull the new image or source and deploy it. Database migrations are forward-only. Back up the embedded data directory or PostgreSQL database before upgrading because it holds accounts, app credentials, triggers, integrations, and execution history.