diff --git a/Caddyfile b/Caddyfile index 7ed476abf1e79..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 -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