luolongfei hai 7 meses
pai
achega
fbba48c227
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      .env.example
  2. 2 2
      app/helpers.php
  3. 1 1
      docker-compose.yml

+ 1 - 1
.env.example

@@ -195,7 +195,7 @@ USE_OPEN_SOURCE_WAF_SOLVER_API=1
 
 # 开源的 AWS WAF Solver URL,默认为作者搭建的共享 token api,无需修改
 # Open-source AWS WAF Solver URL, defaults to the shared token API built by the author, no modification required
-OPEN_SOURCE_WAF_SOLVER_URL='https://aws-waf-solver.llf.app/token'
+OPEN_SOURCE_WAF_SOLVER_URL=''
 
 # 接口密钥,作者搭建的共享 token api 需要使用此密钥进行认证,无需修改
 # API key, the shared token API built by the author requires this key for authentication, no modification necessary

+ 2 - 2
app/helpers.php

@@ -555,7 +555,7 @@ if (!function_exists('getAwsWafToken')) {
 
                     $taskStatus = $body['data']['task_status'];
                     if ($taskStatus !== 'done') { // 任务进行中,继续等待
-                        sleep(3);
+                        sleep(2);
 
                         continue;
                     }
@@ -654,7 +654,7 @@ if (!function_exists('needAwsWafToken')) {
                     'Accept-Encoding' => 'gzip, deflate, br',
                     'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
                 ],
-                'timeout' => 6.2011,
+                'timeout' => 4.2011,
                 CURLOPT_FOLLOWLOCATION => true,
                 CURLOPT_AUTOREFERER => true,
                 'verify' => config('verify_ssl'),

+ 1 - 1
docker-compose.yml

@@ -19,7 +19,7 @@ services:
     aws-waf-solver:
         image: luolongfei/aws-waf-solver
         container_name: aws-waf-solver
-        shm_size: 1gb
+        shm_size: 2gb
         privileged: true
         pull_policy: always
         extends: