File tree 4 files changed +14
-2
lines changed
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this librar
9
9
10
10
---
11
11
12
+ ## [ 1.4.0] ( https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v1.4.0 ) - 2023-03-30
13
+ [ _ Compare with previous release_ ] ( https://github.com/crowdsecurity/php-cs-bouncer/compare/v1.3.0...v1.4.0 )
14
+
15
+
16
+ ### Changed
17
+ - Do not rotate log files of standalone bouncer
18
+
19
+ ---
20
+
21
+
12
22
## [ 1.3.0] ( https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v1.3.0 ) - 2023-03-24
13
23
[ _ Compare with previous release_ ] ( https://github.com/crowdsecurity/php-cs-bouncer/compare/v1.2.0...v1.3.0 )
14
24
Original file line number Diff line number Diff line change 41
41
"require" : {
42
42
"php" : " >=7.2.5" ,
43
43
"crowdsec/remediation-engine" : " ^3.1.1" ,
44
+ "crowdsec/common" : " ^2.1.0" ,
44
45
"symfony/config" : " ^4.4.27 || ^5.2 || ^6.0" ,
45
46
"twig/twig" : " ^3.4.2" ,
46
47
"gregwar/captcha" : " ^1.1" ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Constants extends RemConstants
39
39
/** @var string Path for html templates folder (e.g. ban and captcha wall) */
40
40
public const TEMPLATES_DIR = __DIR__ . "/templates " ;
41
41
/** @var string The last version of this library */
42
- public const VERSION = 'v1.3 .0 ' ;
42
+ public const VERSION = 'v1.4 .0 ' ;
43
43
/** @var string The "disabled" x-forwarded-for setting */
44
44
public const X_FORWARDED_DISABLED = 'no_forward ' ;
45
45
}
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ class StandaloneBouncer extends AbstractBouncer
28
28
*/
29
29
public function __construct (array $ configs , LoggerInterface $ logger = null )
30
30
{
31
- $ this ->logger = $ logger ?: new FileLog ($ configs , 'php_standalone_bouncer ' );
31
+ $ logConfigs = array_merge ($ configs , ['no_rotation ' => true ]);
32
+ $ this ->logger = $ logger ?: new FileLog ($ logConfigs , 'php_standalone_bouncer ' );
32
33
$ configs = $ this ->handleTrustedIpsConfig ($ configs );
33
34
$ configs ['user_agent_version ' ] = Constants::VERSION ;
34
35
$ configs ['user_agent_suffix ' ] = 'Standalone ' ;
You can’t perform that action at this time.
0 commit comments