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 c407c88b1c15f86aece56a248dcb8a9e6c838b29 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Sun, 20 Sep 2026 11:46:03 +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..1e3ef21c832b0 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/**/*.php + watch config/**/*.php + watch apps/**/*.php + watch apps-*/**/*.php + watch core/**/*.php + watch 3rdparty/**/*.php + watch *.php + match /index.php/* + max_consecutive_failures -1 } worker { file remote.php - num 32 - watch match /remote.php/* + watch lib/**/*.php + watch config/**/*.php + watch apps/**/*.php + watch apps-*/**/*.php + watch core/**/*.php + watch 3rdparty/**/*.php + watch *.php + max_consecutive_failures -1 } worker { file ocs/v1.php - num 32 - watch match /ocs/v1.php/* match /ocs/v2.php/* + watch lib/**/*.php + watch config/**/*.php + watch apps/**/*.php + watch apps-*/**/*.php + watch core/**/*.php + watch 3rdparty/**/*.php + watch *.php + max_consecutive_failures -1 } } +} + +{$SERVER_NAME:localhost} { + php_server { + + } log { level ERROR