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
Load the image
We send you astuntcharger-selfhosted-<version>.tar.gzand its SHA-256. Check the hash, then load it. No registry access is needed, so it works on an air-gapped network. - 2
Run it with an admin token
SetADMIN_TOKENto a long random value andPUBLIC_URLto the address your team opens. WithoutADMIN_TOKENa new token is generated on every restart. - 3
Open the simulator
Browse toPUBLIC_URLand enter the admin token when asked. Everyone with the token has full access; there are no user accounts or plan limits.
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_TOKEN | Required in practice. The token the browser asks for; also accepted as Authorization: Bearer on /api. |
|---|---|
PUBLIC_URL | The URL your team opens. Its origin is allowed for WebSocket connections and it is the OCPI base URL. |
ALLOWED_ORIGINS | Comma-separated origins, if the simulator is reached under more than one address. |
ALLOW_PRIVATE_TARGETS | Private and local CSMS addresses are allowed by default; set 0 to allow public addresses only. |
PORT | Listening 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.