- src/utils/emailLayout.js: one layout for every Hub email (Cross Code header with the logo, heading, button with the link under it, notes, tables, job steps, code blocks, footer), HTML and plain text from the same blocks, everything escaped. mail.sendMail attaches the logo. - Every email moved onto it: job reports, alerts, update requests, the SMTP test, notices, and all emails to site admins. Billing keeps its own. - The FastPanel email and the install page give the backend as nginx config with location ^~ /api/ (FastPanel's static-file rule took /api/...png). - Proxy done checks /api/proxy-check.png doesn't reach the frontend. - deployment.md: ^~ for the Hub's own /api/ too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "events-hub-backend",
|
|
"version": "2.10.0",
|
|
"private": true,
|
|
"description": "Cross Events Hub — API for managing Cross Events installs, licences and heartbeats",
|
|
"main": "src/index.js",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "node --watch src/index.js",
|
|
"test": "jest",
|
|
"postinstall": "prisma generate",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:deploy": "prisma migrate deploy && prisma generate",
|
|
"create-admin": "node scripts/create-admin.js",
|
|
"generate-keys": "node scripts/generate-keys.js",
|
|
"check:hub2": "node scripts/check-hub2.js"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^1.3.0",
|
|
"@crosscode/contracts": "file:vendor/crosscode-contracts-1.13.0.tgz",
|
|
"@prisma/adapter-pg": "^7.10.1",
|
|
"@prisma/client": "^7.10.1",
|
|
"bcryptjs": "^2.4.3",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"express": "^4.18.2",
|
|
"express-rate-limit": "^8.6.2",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"nodemailer": "^10.0.16",
|
|
"pdfkit": "^0.17.2",
|
|
"qrcode": "^1.5.4"
|
|
},
|
|
"devDependencies": {
|
|
"jest": "^30.4.2",
|
|
"prisma": "^7.10.1"
|
|
}
|
|
}
|