Fix: Laravel Stack auf UGREEN NAS eingerichtet

This commit is contained in:
salam committed 2026-10-03 12:13:58 +02:00
1 parent 3034b54947
commit 0e37c23e97
3 files changed
+9 -4

No files matched your search

+7 -3
View File
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Log;
class CloudflareSolverService 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. * Holt die Daten und gibt das extrahierte JSON als PHP-Array zurück.
@@ -17,9 +17,9 @@ class CloudflareSolverService
{ {
/** /**
* set in .env * 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 { try {
$response = Http::withHeaders([ $response = Http::withHeaders([
@@ -38,6 +38,10 @@ class CloudflareSolverService
$data = $response->json(); $data = $response->json();
if (strpos($data['solution']['response'], '"code": 403, "reason": "challenge"') !== false) {
dd($data);
}
$tmp = json_encode($data); $tmp = json_encode($data);
// if (strpos($tmp, "reason") !== false && strpos($tmp, 403) !== false) // if (strpos($tmp, "reason") !== false && strpos($tmp, 403) !== false)
// dd($data); // dd($data);
+1 -1
View File
@@ -65,7 +65,7 @@ return [
| |
*/ */
'timezone' => env('APP_TIMEZONE', 'UTC'), 'timezone' => env('APP_TIMEZONE', 'Europe/Berlin'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
+1
View File
@@ -9,3 +9,4 @@ Artisan::command('inspire', function () {
})->purpose('Display an inspiring quote'); })->purpose('Display an inspiring quote');
Schedule::command('model:prune')->hourly(); Schedule::command('model:prune')->hourly();
Schedule::command('grp:daily')->dailyAt('08:00');