From ad6cc1ce86d48000cb6d776876b5a25cbd252c88 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Fri, 19 Apr 2024 12:57:23 +0200
Subject: [PATCH] fixes #9

---
 config/php.ini           | 5 +++++
 lib/Commands/Compile.php | 6 ++++++
 2 files changed, 11 insertions(+)
 create mode 100644 config/php.ini

diff --git a/config/php.ini b/config/php.ini
new file mode 100644
index 0000000..87fc366
--- /dev/null
+++ b/config/php.ini
@@ -0,0 +1,5 @@
+max_input_vars=10000
+max_execution_time=300
+upload_max_filesize=8M
+post_max_size=9M
+error_reporting=22519
diff --git a/lib/Commands/Compile.php b/lib/Commands/Compile.php
index f05ad95..061a9ee 100644
--- a/lib/Commands/Compile.php
+++ b/lib/Commands/Compile.php
@@ -188,6 +188,12 @@ final class Compile extends Command
                 '/usr/local/etc/php-fpm.d/zz-config.conf',
                 'ro'
             );
+            $creator->addServiceVolume(
+                $index,
+                "{$cwd}/config/php.ini",
+                '/usr/local/etc/php/conf.d/studip.ini',
+                'ro'
+            );
             $creator->addServiceVolume(
                 $index,
                 "{$cwd}/logs/php",
-- 
GitLab