Hosting recipe · Plesk Passenger
A customer-hosted Node app on Plesk Passenger.
This recipe records the selected Plesk Passenger baseline for a customer application that already has its own host. It covers runtime/artifact access, exact environment names, callbacks and local identity proof. Connectas does not host the application and does not manage the customer product database.
Selected provider: Plesk Passenger · Current operator-managed Plesk baseline; not a new provider purchase. · verified 2026-10-26.
1. Runtime and artifact access
| Item | Audited baseline |
|---|---|
| Node | 26.12.0 at /opt/plesk/node/26/bin/node |
| Passenger | 6.2.0 |
| Startup file | app.js |
| App root | /var/www/vhosts/<domain>/httpdocs |
| Document root | /var/www/vhosts/<domain>/httpdocs/public |
| Artifact source | Customer-owned Git checkout deployed by Plesk Git; Connectas does not host the application. |
| Install / restart | npm ci then mkdir -p tmp && touch tmp/restart.txt |
# Provider-controlled Node and Passenger baseline
export PATH=/opt/plesk/node/26/bin:$PATH
npm ci
mkdir -p tmp && touch tmp/restart.txt
# Sample entrypoint in this repository
examples/quickstart/plesk/app.js
Use a pinned public package or an explicitly approved private mirror/bundle. The tested repository uses a file: dependency for @velox/auth-oidc-client, so a plain customer checkout must publish, bundle or mirror it with approval before claiming a deployable artifact.
The sample entrypoint loads a protected operator-managed env file, avoids top-level await for the Passenger loader, and starts the tested Node quickstart server. It is a reviewable recipe, not a customer deployment: copy it into the customer repository and replace the local file: dependency with the approved artifact.
2. Exact environment names
Only names and safe examples are published. Values belong in the provider's protected environment file or secret store; references are resolved on the server.
| Name | Required | Safe example | Secret | Purpose |
|---|---|---|---|---|
NODE_ENV | Yes | production | No | Enables production configuration rules. |
HOST | Yes | 127.0.0.1 | No | Passenger forwards the app behind the provider; do not bind a public interface. |
PORT | Passenger-provided | provided by Passenger | No | Do not hard-code a public port or reuse the local quickstart port in production. |
CONNECTAS_AUTH_ISSUER | Yes | https://auth.connectas.me | No | Exact canonical issuer origin; no path, query or fragment. |
CONNECTAS_OIDC_CLIENT_ID | Yes | approved public client ID | No | Public confidential-web client identifier. |
CONNECTAS_OIDC_CLIENT_SECRET_REF | Yes | env:APP_OIDC_CLIENT_SECRET or file:/protected/path | Reference only | Server-side reference; never the secret value in the repository or browser. |
CONNECTAS_PUBLIC_ORIGIN | Yes | https://app.example.com | No | Exact product origin used for logout and return-URL checks. |
CONNECTAS_REDIRECT_URI | Yes | https://app.example.com/auth/callback | No | Exact registered callback; no wildcard, query or second host. |
Protected env-file location: /etc/velox/connectas-quickstart.env (protected, operator-managed). Do not commit that file, print its secret value, or send it to the browser.
3. Exact callbacks and origins
CONNECTAS_AUTH_ISSUER=https://auth.connectas.me
CONNECTAS_PUBLIC_ORIGIN=https://app.example.com
CONNECTAS_REDIRECT_URI=https://app.example.com/auth/callback
POST_LOGOUT_REDIRECT_URI=https://app.example.com/
# Local fixture only:
CONNECTAS_REDIRECT_URI=http://127.0.0.1:4311/auth/callback
- Register the exact production callback and post-logout origin; no wildcard, preview subdomain or query parameter is accepted.
- The local loopback callback is for the fixture harness and must never be registered as a production callback.
- Keep the canonical issuer
https://auth.connectas.me; moving the public site does not move the issuer or customer identities.
4. Local and staging identity proof
| Check | State | Evidence |
|---|---|---|
| Runtime | Recorded | Node 26.12.0 and Passenger 6.2.0 are recorded in the Plesk baseline evidence from 2026-10-22. |
| Local identity | Verified | The tested Node/VLX quickstarts complete a local fixture callback/session/logout flow; the Plesk-style entrypoint test adds protected env loading and local health/identity proof. |
| Staging | Not performed | Not performed in this child: no approved staging customer app, host, provider mutation or secret change was available. A staging run remains a release follow-up. |
| Callbacks | Reviewed | Exact callback and logout origins are documented; no wildcard preview URL or local callback is accepted as a production registration. |
npm run test:quickstart
npm run test:e2e -- --grep "executable .* quickstart"
The local proof exercises discovery, authorization-code + PKCE, callback validation, a separate product session and issuer logout against the fixture issuer. It is not a live provider or customer-identity claim.
5. Network, storage and ownership
Private network: The relying-party recipe needs no private control credential or private-network path to auth.connectas.me. It uses the public issuer endpoints and server-side session configuration.
Durable store: The customer app must provide its own durable product database and durable one-use transaction/session stores. Plesk-local files are not a multi-instance or backup substitute.
What this recipe does not do
- Connectas does not host customer applications, provision Plesk subscriptions or manage the customer product database.
- No Plesk account, DNS, credential, provider callback or live client was changed by this recipe.
- The framework packages remain local file: dependencies in this workspace; package publication or an approved private mirror/bundle is a prerequisite for a customer-deployable artifact.
- Plesk Passenger is the selected baseline recipe, not a claim that Render, Railway, DigitalOcean, Fly.io, Coolify, Dokku or Dokploy were evaluated or selected.
- No staging or production identity round trip is claimed from this child; the local fixture proof is explicitly labelled.