Skip to content

Commit

Permalink
Fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Dec 11, 2021
1 parent b7427f4 commit 894084a
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 105 deletions.
103 changes: 51 additions & 52 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@

// Data driver: File system.
'file' => [
'enable' => true,
'config' => [
'directory_path' => '',
],
'directory_path' => '',
],

// Data driver: File system.
Expand Down Expand Up @@ -143,18 +140,18 @@
'cookie' => [
'enable' => false,
'config' => [
'cookie_name' => 'ssjd',
'cookie_name' => 'ssjd',
'cookie_domain' => '',
'cookie_value' => '1',
'quota' => 5,
'cookie_value' => '1',
'quota' => 5,
],
],

// Session filter.
'session' => [
'enable' => false,
'config' => [
'quota' => 5,
'quota' => 5,
'time_buffer' => 5,
],
],
Expand All @@ -163,7 +160,7 @@
'referer' => [
'enable' => false,
'config' => [
'quota' => 5,
'quota' => 5,
'time_buffer' => 5,
],
],
Expand All @@ -190,26 +187,26 @@

// Trusted-bot component.
'trusted_bot' => [
'enable' => true,
'enable' => true,
'strict_mode' => false,
'allowed_list' => [],
],

// Header filter.
'header' => [
'enable' => true,
'enable' => true,
'strict_mode' => false,
],

// User-agent filter.
'user_agent' => [
'enable' => true,
'enable' => true,
'strict_mode' => false,
],

// RDNS filter.
'rdns' => [
'enable' => true,
'enable' => true,
'strict_mode' => false,
],
],
Expand All @@ -229,18 +226,18 @@
'recaptcha' => [
'enable' => false,
'config' => [
'site_key' => null,
'site_key' => null,
'secret_key' => null,
'version' => 'v2',
'lang' => 'en-US'
'version' => 'v2',
'lang' => 'en-US'
],
],

// A very simple image CAPTCHA.
'image' => [
'enable' => false,
'config' => [
'type' => 'alnum', // // alnum, alpha, numeric
'type' => 'alnum', // // alnum, alpha, numeric
'length' => 4
],
],
Expand All @@ -256,7 +253,7 @@
*/

'ip_variable_source' => [
'REMOTE_ADDR' => true,
'REMOTE_ADDR' => true,
'HTTP_CF_CONNECTING_IP' => false,
'HTTP_X_FORWARDED_FOR' => false,
'HTTP_X_FORWARDED_HOST' => false
Expand All @@ -275,7 +272,7 @@
'online_session_limit' => [
'enable' => false,
'config' => [
'count' => 100,
'count' => 100,
'period' => 300,
'unique_only' => false,
],
Expand All @@ -292,9 +289,9 @@
*/

'xss_protection' => [
'post' => false,
'get' => false,
'cookie' => false,
'post' => false,
'get' => false,
'cookie' => false,
],

'xss_protected_list' => [
Expand Down Expand Up @@ -350,7 +347,7 @@
'csrf_protection' => [
'enable' => true,
'config' => [
'expire' => 7200,
'expire' => 7200,
'excluded_urls' => [
[
'url' => '/ajax/',
Expand All @@ -373,7 +370,7 @@
'reset_circle' => [
'enable' => true,
'config' => [
'period' => 86400,
'period' => 86400,
'last_update' => '2019-01-01 00:00:00',
],
],
Expand Down Expand Up @@ -406,9 +403,9 @@

'ip_manager' => [
[
'url' => '/',
'url' => '/',
'rule' => 'allow',
'ip' => '127.0.0.1',
'ip' => '127.0.0.1',
],
],

Expand Down Expand Up @@ -437,19 +434,19 @@
*/

'dialog_ui' => [
'lang' => 'en',
'lang' => 'en',
'background_image' => '',
'bg_color' => '#ffffff',
'header_bg_color' => '#212531',
'header_color' => '#ffffff',
'shadow_opacity' => '0.2',
'bg_color' => '#ffffff',
'header_bg_color' => '#212531',
'header_color' => '#ffffff',
'shadow_opacity' => '0.2',
],

'dialog_info_disclosure' => [
'user_inforamtion' => false,
'http_status_code' => false,
'reason_code' => false,
'reason_text' => false,
'user_inforamtion' => false,
'http_status_code' => false,
'reason_code' => false,
'reason_text' => false,
'online_user_amount' => false,
],

Expand Down Expand Up @@ -487,7 +484,7 @@
'enable' => false,
'config' => [
'bot_token' => 'your_bot_token',
'channel' => 'your_channel',
'channel' => 'your_channel',
],
'confirm_test' => false,
],
Expand All @@ -514,8 +511,8 @@
'sendgrid' => [
'enable' => false,
'config' => [
'api_key' => 'your_api_key',
'sender' => '[email protected]',
'api_key' => 'your_api_key',
'sender' => '[email protected]',
'recipients' => [
'[email protected]',
'[email protected]',
Expand All @@ -527,10 +524,10 @@
'mailgun' => [
'enable' => false,
'config' => [
'api_key' => 'your_api_key',
'api_key' => 'your_api_key',
'domain_name' => 'your_domain.com',
'sender' => '[email protected]',
'recipients' => [
'sender' => '[email protected]',
'recipients' => [
'[email protected]',
'[email protected]',
]
Expand All @@ -541,8 +538,8 @@
'native_php_mail' => [
'enable' => false,
'config' => [
'sender' => '[email protected]',
'recipients' => [
'sender' => '[email protected]',
'recipients' => [
'[email protected]',
'[email protected]',
]
Expand All @@ -553,8 +550,8 @@
'native_php_mail' => [
'enable' => false,
'config' => [
'sender' => '[email protected]',
'recipients' => [
'sender' => '[email protected]',
'recipients' => [
'[email protected]',
'[email protected]',
]
Expand All @@ -570,8 +567,8 @@
'type' => '', // null, ssl, tls
'user' => '',
'pass' => '',
'sender' => '[email protected]',
'recipients' => [
'sender' => '[email protected]',
'recipients' => [
'[email protected]',
'[email protected]',
]
Expand All @@ -591,15 +588,15 @@
'failed_attempts_in_a_row' => [

'data_circle' => [
'enable' => true,
'enable' => true,
'messenger' => true,
'buffer' => 10,
'buffer' => 10,
],

'system_firewall' => [
'enable' => true,
'enable' => true,
'messenger' => true,
'buffer' => 10,
'buffer' => 10,
]
]

Expand All @@ -613,9 +610,11 @@

'record_attempt' => [
'detection_period' => 5,
'time_to_reset'=> 1800,
'time_to_reset' => 1800,
],

'check_last_failed_attempt_time' => 5,

/*
|--------------------------------------------------------------------------
| Firewall - iptables
Expand Down
Loading

0 comments on commit 894084a

Please sign in to comment.