WIP: form attachments docs (forms, email, security, storage, deployment, notifications), honeypot value sent

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 16:30:44 +01:00
co-authored by Claude Fable 5.2
parent 701bb420c1
commit 344574d6bd
8 changed files with 335 additions and 16 deletions
+18
View File
@@ -400,6 +400,23 @@ With R2 (recommended) media live outside the container and survive redeploys and
the container disk → add a Coolify **Persistent Storage** volume for the upload directory (the upload collection's
`staticDir` — by default a folder named after the slug, e.g. `media`; check the absolute path inside the container), otherwise every redeploy deletes them. See storage.md.
### Form files (`forms.attachments`)
Files on forms are e-mailed, not stored — **no volume and no bucket** for them. What the deploy needs:
- **Request size.** The browser posts a form with a file to `/api/ipal/forms/submit` (up to `maxTotalMB`, 10 MB by
default, plus the answers). Coolify's Traefik and Caddy have no body limit by default. An nginx in front needs
`client_max_body_size 12m;`. Cloudflare (proxied) allows 100 MB. Next's Server Action limit does not apply, and
the i18n proxy must keep `/api` out of its matcher (the default one does).
- **Time.** The request stays open while the file uploads and the e-mail is sent. On a slow connection a 10 MB
upload can take over a minute — check the proxy's read timeout (Traefik: `respondingTimeouts.readTimeout` of the
entry point) if visitors on mobile networks report failures. Not measured by the plugin's tests; verify once on
the real server with a throttled upload.
- **Memory.** A file is held in memory while it is checked and sent (about 2.4 × its size); at most two file
submissions run at once per instance (`attachments.maxConcurrent`).
- **Mail.** Send the test e-mail with the 10 MB file after every change of mail provider
([email.md](./email.md) "Attachments").
### Integrations in the panel
Mail (SMTP/Graph) and Turnstile errors are visible in the panel after deploy: an alert on the dashboard and a banner on
@@ -418,6 +435,7 @@ media in R2 or on a persistent disk.
- [ ] Home page `/` redirects to a locale (`/pl`)
- [ ] Panel `/admin` works, login OK
- [ ] The form sends (test from the panel: Send test)
- [ ] Forms with a File field: the test e-mail with the 10 MB file arrives; a real submission with a file arrives with the attachment
- [ ] Media display — through the app: `curl -sI https://klient.pl/api/media/file/<file>` → 200; media domain: no 403
- [ ] Coolify: health check green, a scheduled backup exists (§4.4, §4.6)
- [ ] Favicon in `<head>` (see seo.md — Google caches it slowly)