|
34 | 34 |
|
35 | 35 | // Optional. If you use a CDN, a reverse proxy or a load balancer, set an array of IPs.
|
36 | 36 | // For other IPs, the bouncer will not trust the X-Forwarded-For header.
|
| 37 | + // Default to empty array |
37 | 38 | 'trust_ip_forward_array' => [],
|
38 | 39 |
|
39 | 40 | // Optional. true to enable stream mode, true to enable the stream mode. Default to false.
|
|
50 | 51 |
|
51 | 52 | // Optional. Only for test or debug purpose.
|
52 | 53 | // If not empty, it will be used for all remediation and geolocation processes.
|
| 54 | + // Default to empty |
53 | 55 | 'forced_test_ip' => '1.2.3.4',
|
54 | 56 |
|
55 | 57 | // Optional. Cap the remediation to the selected one.
|
|
68 | 70 | // Optional. Set the duration we keep in cache the fact that an IP is bad. In seconds. Defaults to 20.
|
69 | 71 | 'cache_expiration_for_bad_ip'=> '20',
|
70 | 72 |
|
71 |
| - // Optional |
72 |
| - 'hide_mentions' => false |
73 |
| - |
74 | 73 | // Optional. Settings for geolocation remediation (i.e. country based remediation).
|
75 | 74 | 'geolocation' => [
|
76 |
| - // Optional. true to enable remediation based on country. |
77 |
| - // Default to false. |
78 |
| - 'enabled' => false, |
79 |
| - // Optional. Geolocation system. Only 'maxmind' is available for the moment. |
80 |
| - // Default to 'maxmind' |
81 |
| - 'type' => 'maxmind', |
82 |
| - // Optional. true to store the geolocalized country in session |
83 |
| - // Setting true will avoid multiple call to the geolocalized system (e.g. maxmind database) |
84 |
| - // Default to true. |
85 |
| - 'save_in_session' => true, |
86 |
| - // Optional. MaxMind settings |
87 |
| - 'maxmind' => [ |
88 |
| - // Optional. Select from 'country' or 'city'. |
89 |
| - // These are the two available MaxMind database types. |
90 |
| - // Default to 'country' |
91 |
| - 'database_type' => 'country', |
92 |
| - // Optional. Absolute path to the MaxMind database (mmdb file). |
93 |
| - 'database_path' => '/some/path/GeoLite2-Country.mmdb', |
94 |
| - ] |
| 75 | + // Optional. true to enable remediation based on country. |
| 76 | + // Default to false. |
| 77 | + 'enabled' => false, |
| 78 | + // Optional. Geolocation system. Only 'maxmind' is available for the moment. |
| 79 | + // Default to 'maxmind' |
| 80 | + 'type' => 'maxmind', |
| 81 | + // Optional. true to store the geolocalized country in session |
| 82 | + // Setting true will avoid multiple call to the geolocalized system (e.g. maxmind database) |
| 83 | + // Default to true. |
| 84 | + 'save_in_session' => true, |
| 85 | + // Optional. MaxMind settings |
| 86 | + 'maxmind' => [ |
| 87 | + // Optional. Select from 'country' or 'city'. |
| 88 | + // These are the two available MaxMind database types. |
| 89 | + // Default to 'country' |
| 90 | + 'database_type' => 'country', |
| 91 | + // Optional. Absolute path to the MaxMind database (mmdb file). |
| 92 | + 'database_path' => '/some/path/GeoLite2-Country.mmdb', |
| 93 | + ] |
95 | 94 | ]
|
96 | 95 | ]
|
97 | 96 | $bouncer = new Bouncer();
|
|
0 commit comments