From 78b6be2c09ce0b87d8a9ab6b4e2107dde362d26e Mon Sep 17 00:00:00 2001 From: Wisdom Hambolu Date: Fri, 14 Jun 2024 13:24:27 +0000 Subject: [PATCH] Updates nginx to 3.5.8 and disables rate limiting --- inc/composer/class-docker-compose-generator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/composer/class-docker-compose-generator.php b/inc/composer/class-docker-compose-generator.php index 2c6fbe3a..5d311ee7 100644 --- a/inc/composer/class-docker-compose-generator.php +++ b/inc/composer/class-docker-compose-generator.php @@ -308,7 +308,7 @@ protected function get_service_nginx() : array { return [ 'nginx' => [ - 'image' => 'humanmade/altis-local-server-nginx:3.5.4', + 'image' => 'humanmade/altis-local-server-nginx:3.5.8', 'container_name' => "{$this->project_name}-nginx", 'networks' => [ 'proxy', @@ -337,6 +337,8 @@ protected function get_service_nginx() : array { 'GZIP_STATUS' => 'on', // Increase read response timeout when debugging. 'READ_TIMEOUT' => ( $this->args['xdebug'] ?? 'off' ) !== 'off' ? '9000s' : '60s', + // Disables rate limiting. + 'PHP_PUBLIC_POOL_ENABLE_RATE_LIMIT' => 'false', ], ], ];