From dd9263bec8fb8c1e49dfa1292b56e75289d6d6fb Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 18 Sep 2026 16:46:34 +0200 Subject: [PATCH 1/2] feat(frankenphp): Make host name configurable Signed-off-by: Louis Chmn --- Caddyfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 7ed476abf1e79..b1d56e4f4603d 100644 --- a/Caddyfile +++ b/Caddyfile @@ -12,7 +12,7 @@ } } -localhost { +{$SERVER_NAME::localhost} { php_server { worker { file index.php From 650dc71d0f7fbf11b030542e7f60575ceb12a094 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Sat, 19 Sep 2026 15:28:33 +0200 Subject: [PATCH 2/2] feat(franken): Refine watched files Also: - Restart on failures - Move the worker config to the franken directive Signed-off-by: Louis Chmn --- Caddyfile | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/Caddyfile b/Caddyfile index b1d56e4f4603d..944380e0564d6 100644 --- a/Caddyfile +++ b/Caddyfile @@ -6,34 +6,54 @@ { metrics frankenphp { - num_threads 192 - max_threads 256 - # max_requests 500 - } -} + max_threads auto + max_requests 100 -{$SERVER_NAME::localhost} { - php_server { worker { file index.php - num 32 - watch + watch lib + watch config + watch apps + watch apps-* + watch core + watch 3rdparty + watch *.php + match /index.php/* + max_consecutive_failures -1 } worker { file remote.php - num 32 - watch match /remote.php/* + watch lib + watch config + watch apps + watch apps-* + watch core + watch 3rdparty + watch *.php + max_consecutive_failures -1 } worker { file ocs/v1.php - num 32 - watch match /ocs/v1.php/* match /ocs/v2.php/* + watch lib + watch config + watch apps + watch apps-* + watch core + watch 3rdparty + watch *.php + max_consecutive_failures -1 } } +} + +{$SERVER_NAME:localhost} { + php_server { + + } log { level ERROR