Skip to content

Commit

Permalink
feat: update laravel-cloudflare (#5904)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Jan 15, 2022
1 parent 519efc2 commit 458642a
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 130 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function schedule(Schedule $schedule)
$this->scheduleCommand($schedule, 'monica:ping', 'daily');
$this->scheduleCommand($schedule, 'monica:clean', 'daily');
$this->scheduleCommand($schedule, 'monica:updategravatars', 'weekly');
if (config('trustedproxy.cloudflare')) {
if (config('monica.cloudflare')) {
$this->scheduleCommand($schedule, 'cloudflare:reload', 'daily');
}
$this->scheduleCommand($schedule, 'model:prune', 'daily');
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"doctrine/dbal": "^3.0",
"erusev/parsedown": "^1.7",
"facade/ignition": "^2.0",
"fideloper/proxy": "^4.0",
"giggsey/libphonenumber-for-php": "^8.9",
"guzzlehttp/guzzle": "^7.2",
"intervention/image": "^2.3",
Expand All @@ -37,7 +36,7 @@
"mariuzzo/laravel-js-localization": "^1.7",
"matriphe/iso-639": "^1.0",
"moneyphp/money": "^3.1",
"monicahq/laravel-cloudflare": "^1.0",
"monicahq/laravel-cloudflare": "^3.0",
"monicahq/laravel-sabre": "^1.2",
"ok/ipstack-client": "^1.2",
"phar-io/version": "^3.1",
Expand Down
100 changes: 22 additions & 78 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions config/monica.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,12 @@
*/
'export_size' => (int) env('EXPORT_SIZE', 5),

/*
|--------------------------------------------------------------------------
| Enable cloudflare trusted proxies
|--------------------------------------------------------------------------
|
*/
'cloudflare' => (bool) env('APP_TRUSTED_CLOUDFLARE', false),

];
49 changes: 0 additions & 49 deletions config/trustedproxy.php

This file was deleted.

0 comments on commit 458642a

Please sign in to comment.