diff --git a/CHANGELOG.md b/CHANGELOG.md index 92660e4..a97c2c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this librar --- +## [1.4.0](https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v1.4.0) - 2023-03-30 +[_Compare with previous release_](https://github.com/crowdsecurity/php-cs-bouncer/compare/v1.3.0...v1.4.0) + + +### Changed +- Do not rotate log files of standalone bouncer + +--- + + ## [1.3.0](https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v1.3.0) - 2023-03-24 [_Compare with previous release_](https://github.com/crowdsecurity/php-cs-bouncer/compare/v1.2.0...v1.3.0) diff --git a/composer.json b/composer.json index dc859e7..cbfc084 100644 --- a/composer.json +++ b/composer.json @@ -41,6 +41,7 @@ "require": { "php": ">=7.2.5", "crowdsec/remediation-engine": "^3.1.1", + "crowdsec/common": "^2.1.0", "symfony/config": "^4.4.27 || ^5.2 || ^6.0", "twig/twig": "^3.4.2", "gregwar/captcha": "^1.1", diff --git a/src/Constants.php b/src/Constants.php index 972e00f..3215a50 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -39,7 +39,7 @@ class Constants extends RemConstants /** @var string Path for html templates folder (e.g. ban and captcha wall) */ public const TEMPLATES_DIR = __DIR__ . "/templates"; /** @var string The last version of this library */ - public const VERSION = 'v1.3.0'; + public const VERSION = 'v1.4.0'; /** @var string The "disabled" x-forwarded-for setting */ public const X_FORWARDED_DISABLED = 'no_forward'; } diff --git a/src/StandaloneBouncer.php b/src/StandaloneBouncer.php index 1641c58..1f6706b 100644 --- a/src/StandaloneBouncer.php +++ b/src/StandaloneBouncer.php @@ -28,7 +28,8 @@ class StandaloneBouncer extends AbstractBouncer */ public function __construct(array $configs, LoggerInterface $logger = null) { - $this->logger = $logger ?: new FileLog($configs, 'php_standalone_bouncer'); + $logConfigs = array_merge($configs, ['no_rotation' => true]); + $this->logger = $logger ?: new FileLog($logConfigs, 'php_standalone_bouncer'); $configs = $this->handleTrustedIpsConfig($configs); $configs['user_agent_version'] = Constants::VERSION; $configs['user_agent_suffix'] = 'Standalone';