English | 简体中文 | 繁體中文 | 日本語 | Русский
wrangler login
wrangler d1 create erispulse-workbench # put database_id into wrangler.toml
wrangler d1 execute erispulse-workbench --remote --file=schema.sql
wrangler deployThe first registered account becomes admin.
| Variable | Purpose |
|---|---|
GITHUB_CLIENT_ID/SECRET |
GitHub OAuth login |
CODEBERG_CLIENT_ID/SECRET |
Codeberg OAuth login |
YUNHU_CLIENT_ID/SECRET |
Yunhu OAuth login |
SMTP_HOST/PORT/USER/PASS, MAIL_FROM |
Email verification codes |
MODULE_REPO_TOKEN |
Dispatch module-management operations to ModuleRepo |
Unconfigured login methods are hidden automatically.
| Endpoint | Method | Description |
|---|---|---|
/oauth/authorize |
GET | Authorization entry, params client_id redirect_uri state |
/oauth/token |
POST | Exchange code + client_secret for access_token |
/api/userinfo |
GET | Bearer; returns uid/username/display_name/role |
Each login method requires an OAuth app on the corresponding platform, with the callback set to https://<your-domain>/ (same origin as the login entry). Any logged-in user can register a client on the "Connected apps" page (the client_secret is shown only once at generation).
public/ Frontend (static)
public/vendor/ Third-party single-file libs (qrcode-generator, MIT)
src/worker.js Worker backend
schema.sql D1 schema
MIT (public/vendor/qrcode.js from qrcode-generator, MIT)
