From dcfb0cc424db6347f109b8e494133527b3716b82 Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Fri, 10 Apr 2026 19:32:59 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Upload-Limit=20auf=2020=20MB=20erh=C3=B6?= =?UTF-8?q?hen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Changes.md | 8 ++++++++ Dockerfile | 3 +++ README.md | 13 +++++++++++++ php/uploads.ini | 2 ++ 4 files changed, 26 insertions(+) create mode 100644 php/uploads.ini diff --git a/Changes.md b/Changes.md index 5a04d0e..84c7665 100644 --- a/Changes.md +++ b/Changes.md @@ -2,6 +2,14 @@ --- +## 2026-04-10 – Upload-Limit auf 20 MB erhöht + +### Geändert +- `php/uploads.ini`: `upload_max_filesize` und `post_max_size` auf 20 MB gesetzt (zuvor PHP-Standard 2 MB) +- `Dockerfile`: bindet `php/uploads.ini` als PHP-Konfiguration ein + +--- + ## 2026-04-10 – Belegtext-Speicherung für spätere Volltextsuche ### Neu diff --git a/Dockerfile b/Dockerfile index ef4e779..f797d2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,9 @@ RUN composer install --no-dev --no-interaction --optimize-autoloader 2>/dev/null # Copy application COPY . . +# PHP configuration +COPY php/uploads.ini /usr/local/etc/php/conf.d/uploads.ini + # Apache configuration COPY apache/steuerkram.conf /etc/apache2/sites-available/000-default.conf RUN a2enmod rewrite headers diff --git a/README.md b/README.md index 3d356a3..02fffc0 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,19 @@ ports: - "9090:80" # Beispiel: Port 9090 auf dem Host ``` +## Upload-Limit anpassen + +Die maximale Dateigröße für Beleganhänge ist auf **20 MB** voreingestellt (`php/uploads.ini`). Um das Limit zu ändern, die Werte in dieser Datei anpassen und den Container neu bauen: + +```ini +upload_max_filesize = 20M +post_max_size = 20M +``` + +```bash +docker compose up -d --build +``` + ## Datenpersistenz | Pfad | Inhalt | diff --git a/php/uploads.ini b/php/uploads.ini new file mode 100644 index 0000000..ddc3ee6 --- /dev/null +++ b/php/uploads.ini @@ -0,0 +1,2 @@ +upload_max_filesize = 20M +post_max_size = 20M