Hub 2.10.0: emails laid out as Events' and Accounts'; FastPanel ^~ /api/
- 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>
This commit is contained in:
+6
-2
@@ -215,10 +215,14 @@ in-process and would fire once per copy.
|
||||
|
||||
In FASTPANEL, open the site → **Configuration files** (the nginx config of the site). Inside the
|
||||
`server { ... }` block that listens on 443, replace the default `location /` (the one serving
|
||||
static files / PHP) with:
|
||||
static files / PHP) with the two locations below. Keep the `^~` on `/api/`: FASTPANEL's
|
||||
static-file handling adds a regex location for file extensions (`png|pdf|…`) that wins over a
|
||||
plain `location /api/`, and would send `/api/…/statement.pdf` to the frontend (2.10.0; the same
|
||||
happened to Cross Events' uploaded logos). Check with
|
||||
`curl -sI https://events-hub.crosscode.co.za/api/x.pdf`: it must not say `X-Powered-By: Next.js`.
|
||||
|
||||
```nginx
|
||||
location /api/ {
|
||||
location ^~ /api/ {
|
||||
proxy_pass http://127.0.0.1:5200;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user