npx @kldzj/sigillo self-host
npx.Worker exceeded resource limits. So on the free plan, expect a dashboard page to fail now and then; loading it again usually works. Workers Paid, $5 a month per account, allows 30 seconds, and its included requests and CPU time are far more than an instance uses. D1 is billed separately, and an instance stays within its included amounts.npx @kldzj/sigillo self-host │ ├──> 1. Unlock ~/.sigillo/selfhost.json with your passphrase ├──> 2. Log in to Cloudflare (reuses wrangler login when present) ├──> 3. Download this version's release bundle from github.com/kldzj/sigillo, and check its SHA-256 ├──> 4. Create the app's D1 database and apply its migrations ├──> 5. Deploy the login provider (<name>-auth): D1, migrations, Worker ├──> 6. Deploy the app (<name>): Worker, static assets ├──> 7. Enable both workers.dev URLs └──> 8. Optionally attach a custom domain to the app
~/.sigillo/selfhost.json, the file where the command keeps your deployment's keys: keep the passphrase in your password manager, and see your deploy file for what's in it.https://sigillo-auth.<your-subdomain>.workers.dev/api/auth/callback/google.--google-client-id and --google-client-secret.CLOUDFLARE_API_TOKEN environment variable (or --api-token)self-host runwrangler login (refreshed automatically if expired)npx @kldzj/sigillo self-host --allowed-users acme.com,ops@partner.io
--yes or without a terminal, pass --allowed-users, or anyone with a Google account can sign in. Only verified emails match: an address matches itself, a domain matches exactly that domain, not its subdomains. Nobody else can sign up or sign in, in the browser or with the CLI, and a signed-in user taken off the list is signed out on their next request. The app and its login provider both check it.~/.sigillo/selfhost.json. Pass --allowed-users again to change it, or --allowed-users '' to let anyone in.npx @kldzj/sigillo self-host --domain secrets.acme.com
workers.dev URLs too: self-host uses them, and the login provider only has that one. --skip-domain skips the question.CLOUDFLARE_API_TOKEN=xxx SIGILLO_SELFHOST_PASSPHRASE=xxx npx @kldzj/sigillo self-host --yes \ --google-client-id xxx.apps.googleusercontent.com --google-client-secret xxx \ --allowed-users acme.com
| Option | Description |
--name <name> | Worker name (default: sigillo); the login provider is <name>-auth |
--account <id> | Cloudflare account id (skips the account prompt) |
--api-token <token> | Cloudflare API token |
--google-client-id <id> | Google OAuth client ID for a new login provider |
--google-client-secret <secret> | Google OAuth client secret for a new login provider |
--allowed-users <list> | Email addresses and domains that may sign in, comma-separated; '' lets anyone in |
--domain <hostname> | Attach a custom domain to the app (the zone must be on your account) |
--skip-domain | Skip the custom domain prompt |
--bundle <path> | Deploy a local copy of this version's bundle, checked like a download |
--release-url <url> | Download this version's bundle from a custom URL, checked like a download |
--allow-downgrade | Deploy even if the instance runs a newer version |
--change-passphrase | Encrypt ~/.sigillo/selfhost.json with a new passphrase, then stop. See your deploy file |
--reset-passkeys <email> | Remove every passkey of this user and sign them out, for a sole admin who lost theirs, then stop. See Lost every passkey |
--rotate-key | Give the instance a new encryption key, re-encrypt every stored value with it and retire the old key, then stop. See Rotate the encryption key |
--backup [file] | Save an encrypted backup of both databases, then stop. See Back up and restore |
--restore <file> | Restore both databases from a backup into new ones, check their history and switch the workers to them |
--yes | Accept all defaults, non-interactive |