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
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