Skip to content
StuntCharger

Self-hosted run StuntCharger inside your network.

The Self-hosted plan ships StuntCharger as a Docker image for your own infrastructure. It needs no StuntCharger account, makes no outbound calls of its own, and can reach a CSMS on a private address.

Install

  1. 1

    Load the image

    We send you a stuntcharger-selfhosted-<version>.tar.gz and its SHA-256. Check the hash, then load it. No registry access is needed, so it works on an air-gapped network.
  2. 2

    Run it with an admin token

    Set ADMIN_TOKEN to a long random value and PUBLIC_URL to the address your team opens. Without ADMIN_TOKEN a new token is generated on every restart.
  3. 3

    Open the simulator

    Browse to PUBLIC_URL and enter the admin token when asked. Everyone with the token has full access; there are no user accounts or plan limits.
shell
shasum -a 256 -c stuntcharger-selfhosted-<version>.tar.gz.sha256
docker load -i stuntcharger-selfhosted-<version>.tar.gz
docker run -d --name stuntcharger --restart unless-stopped -p 8790:8790 \
  -e ADMIN_TOKEN="$(openssl rand -hex 32)" \
  -e PUBLIC_URL=https://stuntcharger.internal.example \
  stuntcharger-selfhosted:<version>

Configuration

ADMIN_TOKENRequired in practice. The token the browser asks for; also accepted as Authorization: Bearer on /api.
PUBLIC_URLThe URL your team opens. Its origin is allowed for WebSocket connections and it is the OCPI base URL.
ALLOWED_ORIGINSComma-separated origins, if the simulator is reached under more than one address.
ALLOW_PRIVATE_TARGETSPrivate and local CSMS addresses are allowed by default; set 0 to allow public addresses only.
PORTListening port inside the container. Default 8790.

TLS

Put the container behind your reverse proxy with HTTPS, and pass WebSocket upgrades for /proxy and /bridge through. Over plain http on an address other than localhost, browsers turn off Web Crypto, so certificate signing requests, certificate checks and signed firmware stop working; plain OCPP sessions still run.

What runs where

The simulator runs in each user's browser; the container relays its OCPP connections to your CSMS and hosts the OCPI hub. State is held in memory: restarting the container ends open connections. Run one container; do not scale it out.

The CI runner and API keys need StuntCharger accounts and are not available in the self-hosted image.