create-fibergate
v0.1.4
Published
Scaffold a FiberGate merchant deploy directory (.env, CKB key, docker-compose.release.yml) with one interactive command.
Maintainers
Readme
create-fibergate
Scaffold a FiberGate merchant deploy
directory with one interactive command — no manual secret generation, no
hand-editing .env.
npx create-fibergate@latest my-fibergate-deploy
# or
npm create fibergate@latest my-fibergate-deployWhat it does
The wizard prompts for the values a FiberGate merchant deploy needs, then writes a ready-to-run directory:
- Postgres credentials (generate a random password, or bring your own)
- The initial dashboard admin password — hashed locally with bcrypt, never sent anywhere
- Your CKB testnet signing key for
fiber-node— either a fresh key you've already exported viackb-cli, or one already encrypted from a prior deploy (the passphrase is verified offline, before anything is written, so a typo doesn't surface later as a cryptic container crash) DOMAIN(defaults tolocalhost) /GHCR_NAMESPACEfor the public HTTPS deploy —CERTBOT_EMAILisn't prompted for, it's optional and only needed once you get a real TLS cert later- 3 secrets generated automatically (
DASHBOARD_SESSION_SECRET,FIBERGATE_INTERNAL_SECRET,WEBHOOK_SECRET_ENCRYPTION_KEY)
Output directory:
my-fibergate-deploy/
docker-compose.yml
.env
docker/fiber-node/config.yml
docker/fiber-node/ckb/key
docker/nginx/nginx.conf.templateThen:
cd my-fibergate-deploy
docker compose up -dThat's it — fibergate-core runs pending DB migrations automatically before it
starts serving, on first install or any later version upgrade.
See the main repo for what FiberGate is and the full deploy guide.
Security notes
.envanddocker/fiber-node/ckb/keyare written with0600permissions (owner read/write only) — both hold secrets.- The CLI never mints a new CKB keypair — you always supply your own key,
exported via
ckb-cli. - Nothing is sent over the network. Everything runs locally on your machine.
License
MIT
