Fix: Laravel Stack auf UGREEN NAS eingerichtet
This commit is contained in:
1 parent
3034b54947
commit
0e37c23e97
3 files changed
+9
-4
No files matched your search
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Log;
|
||||
|
||||
class CloudflareSolverService
|
||||
{
|
||||
protected string $solverUrl = 'http://192.168.178.187:8191/v1';
|
||||
protected string $solverUrl = 'http://flaresolverr:8191/v1';
|
||||
|
||||
/**
|
||||
* Holt die Daten und gibt das extrahierte JSON als PHP-Array zurück.
|
||||
@@ -17,9 +17,9 @@ class CloudflareSolverService
|
||||
{
|
||||
/**
|
||||
* set in .env
|
||||
* FLARESOLVERR_IP_DOCKER="http://192.168.178.187:8191/v1"
|
||||
* FLARESOLVERR_IP_DOCKER="http://flaresolverr:8191/v1"
|
||||
*/
|
||||
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://192.168.178.187:8191/v1');
|
||||
$this->solverUrl = env('FLARESOLVERR_IP_DOCKER', 'http://flaresolverr:8191/v1');
|
||||
|
||||
try {
|
||||
$response = Http::withHeaders([
|
||||
@@ -38,6 +38,10 @@ class CloudflareSolverService
|
||||
|
||||
$data = $response->json();
|
||||
|
||||
if (strpos($data['solution']['response'], '"code": 403, "reason": "challenge"') !== false) {
|
||||
dd($data);
|
||||
}
|
||||
|
||||
$tmp = json_encode($data);
|
||||
// if (strpos($tmp, "reason") !== false && strpos($tmp, 403) !== false)
|
||||
// dd($data);
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => env('APP_TIMEZONE', 'UTC'),
|
||||
'timezone' => env('APP_TIMEZONE', 'Europe/Berlin'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -9,3 +9,4 @@ Artisan::command('inspire', function () {
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Schedule::command('model:prune')->hourly();
|
||||
Schedule::command('grp:daily')->dailyAt('08:00');
|
||||
Reference in new issue
Block a user