Skip to content

Register a server ​

Registering connects one self-hosted server to your organization's licence. The server asks; an admin of the organization approves on the portal; the server fetches its licence. Nobody copies a key.

Before you start ​

  • The organization has a paid licence with a free server slot (Manage licences and servers).
  • You are an admin of the organization on the portal, or can reach one within 10 minutes.
  • The server can make outbound HTTPS requests to app.joobq.io. Your browser does not need to reach the server for the approval, and the portal never needs to.

Choose a route ​

RouteUse it whenWho approves
The setup pageA new server, and you can open it in a browserAn admin, with a code
A terminalNo browser can open the serverAn admin, with a code
An enrollment tokenA pipeline or an orchestrator starts the serverNobody at start: an admin made the token beforehand
The Licence cardThe server already runs and must be connected againAn admin, with a code

How a code is approved ​

The first, second and fourth routes use the same handshake:

Drawing the diagram…

The server is registered only when it collects its licence. A code that is never approved, or approved and never collected, changes nothing.

Only approve a code your own server is showing you

Approving a code connects whichever server asked for it to your organization. Never approve a code someone sent you. Every connection is mailed to all admins of the organization; if one is not yours, disable it (Manage).

From the setup page ​

On the server:

  1. Start the server (Deploy the server). It prints a one-time setup code in its log.
  2. Open the server, enter the setup code, enter its public address (https://...) and choose Sign in with JoobQ.
  3. The page shows a short code such as WDJB-MJHT and an Open JoobQ button.

On the portal (the button takes you there, with the code filled in):

  1. Sign in as an admin. On Connect a server, check what the page shows: the server's name, its declared address, and the address the request came from.
  2. Choose Approve.
The portal's Connect a self-hosted server page: a warning to approve only a code your own server shows, the code field, and the server's details (name, declared address, where the request came from, software version, organization, when the code expires) above Approve and Deny buttons.The portal's Connect a self-hosted server page: a warning to approve only a code your own server shows, the code field, and the server's details (name, declared address, where the request came from, software version, organization, when the code expires) above Approve and Deny buttons.
Connect a server on the portal: check the name and the address, then Approve (local test data).

Back on the server: within a few seconds the setup page moves on to the connections.

From a terminal ​

On the server's host, with its environment and data volume:

sh
./joobqui connect --url https://jobs.example.com

It prints the code and a link, waits until an admin has approved it on the portal, and saves the licence. In Compose: docker compose -f deploy/selfhosted.compose.yml --env-file deploy/.env exec app ./joobqui connect --url ....

Unattended, with an enrollment token ​

  1. On the portal's Deployments & licensing page, an admin creates a token under Enrollment tokens (Manage). It is shown once.
  2. Start the server with JOOBQUI_ENROLLMENT_TOKEN (or JOOBQUI_ENROLLMENT_TOKEN_FILE) and JOOBQUI_PUBLIC_URL. It connects itself before it starts, with no sign-in.

The full recipe, with the connections and JOOBQUI_SETUP=off, is in Unattended install.

Reconnect a running server ​

A server whose licence was disconnected, disabled or replaced is connected again from its own console: Settings → Licence → Reconnect shows a code, an admin approves it on the portal as above, and the server restarts by itself to use the new licence. From a terminal: ./joobqui connect --reconnect.

The console's Settings page on its Licence tab: the licence is active on the Pro tier, with the organization, the deployment id, the address, the last check-in, and Reconnect and Disconnect buttons.The console's Settings page on its Licence tab: the licence is active on the Pro tier, with the organization, the deployment id, the address, the last check-in, and Reconnect and Disconnect buttons.
The Licence card of a connected server, with Reconnect and Disconnect (mock data).

When the organization already has an active server at the same address, the portal's button reads Approve and reconnect: once this server has collected its licence, the old one stops being licensed. That is how you replace a server, or cut off a copy of its data volume that is running somewhere else.

Check it worked ​

On the server:

sh
./joobqui license:status

prints eligible, status, tier, the seats and paid_until as JSON, and exits with status 0 when the server is licensed.

On the portal, the server is listed under Connected self-hosted servers on Deployments & licensing, with the time of its last check-in.

If it is not: Licensing troubleshooting.

Next ​

Members of the organization can now choose Sign in with JoobQ on the server's sign-in page and get their portal role there. For local accounts and the SDK token, continue with First sign-in.