You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,40 @@ All notable changes to this project will be documented in this file.
6
6
7
7
- Consolidated 25 historical 2.x Doctrine migrations into a single end-of-2.8 schema migration; upgraders run `doctrine:migrations:rollup` (see `UPGRADE.md` step 3).
8
8
- Restored three deprecated `Template` properties (`icon`, `resources`, `description`) as write-only fields; scheduled for removal in 3.1.
9
+
- Fixed admin toast leaking a raw `SyntaxError: Unexpected token '<'` when an upload was rejected
10
+
upstream (e.g. nginx 413); the toast now shows `HTTP <status>` instead.
11
+
- Made the media upload max size configurable via the new `MEDIA_MAX_UPLOAD_SIZE_MB` env var.
12
+
- Fixed playlist share-target dropdown silently truncating to 30 tenants; it now loads every page.
13
+
- Refactored InteractiveController to use a typed `InteractiveSlideActionInput` DTO; regenerated API spec and RTK types.
See [Preview mode in the Client](#preview-mode-in-the-client).
514
541
515
542
**Default**: Disabled.
543
+
- ADMIN_LOGIN_SCREEN_TEXT: Optional explanatory text rendered in the sidebar card on the Admin login page.
544
+
Accepts a small allow-list of HTML tags (`strong`, `em`, `b`, `i`, `br`, `p`, `a`, `span`) and attributes
545
+
(`href`, `title`, `target`, `rel`, `class`); the value is sanitized client-side with DOMPurify before being
546
+
rendered. Leave empty to hide the sidebar card entirely.
547
+
548
+
```dotenv
549
+
ADMIN_LOGIN_SCREEN_TEXT='<p>Er du <strong>medarbejder</strong> skal du benytte medarbejderlogin.</p><p>Er du <strong>borger</strong> skal du benytte MitID login.</p>'
550
+
```
551
+
552
+
**Default**: Empty (no sidebar card shown).
516
553
517
554
### Client configuration
518
555
@@ -561,6 +598,21 @@ CLIENT_DEBUG=false
561
598
562
599
**Default**: Disabled.
563
600
601
+
### Configuring media upload size limits
602
+
603
+
The maximum size of an uploaded media file is enforced at three independent layers. They must be kept aligned —
604
+
the strictest one wins, and when nginx or PHP-FPM rejects a request the user sees a generic 413 / network error
605
+
rather than the friendly Symfony validator message. Keep them ordered as: **PHP-FPM ≥ nginx ≥ app**.
606
+
607
+
| Layer | Knob | Where it lives |
608
+
|---|---|---|
609
+
| App (Symfony validator + Admin UI) |`MEDIA_MAX_UPLOAD_SIZE_MB` (megabytes, integer) |`.env` (committed default `200`) — override in `.env.local` for development or in the deployment environment for production |
610
+
| Nginx request body |`NGINX_MAX_BODY_SIZE` (nginx size string, e.g. `200m`) |`docker-compose.yml` and `docker-compose.server.yml`; image default is `200m` (set in `infrastructure/nginx/Dockerfile`) |
611
+
| PHP-FPM upload + post body |`PHP_UPLOAD_MAX_FILESIZE`, `PHP_POST_MAX_SIZE` (PHP size strings, e.g. `200M`) | Operator-managed env vars on the php-fpm container (supported by the `itkdev/php8.4-fpm` base image). Not set in this repo by default — base image defaults apply unless overridden |
612
+
613
+
The app reads `MEDIA_MAX_UPLOAD_SIZE_MB` per-request, so a deploy / php-fpm worker reload is enough to pick up
614
+
changes; no validator cache clear is needed.
615
+
564
616
### Other configuration options
565
617
566
618
- See `docs/configuration/openid-connect.md` for configuration of OpenID Connect.
0 commit comments