From 8f575780d54786055de7aa96789c6407a0b3a6e2 Mon Sep 17 00:00:00 2001 From: Alessandro Del Prete Date: Thu, 15 Sep 2022 17:11:41 +0200 Subject: [PATCH 1/3] Missing option for GDPR (Errors on startup #19) --- app/Jobs/ExecSpeedtest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Jobs/ExecSpeedtest.php b/app/Jobs/ExecSpeedtest.php index 42517f135..f11e8adf8 100644 --- a/app/Jobs/ExecSpeedtest.php +++ b/app/Jobs/ExecSpeedtest.php @@ -38,6 +38,7 @@ public function handle() $args = [ 'speedtest', '--accept-license', + '--accept-gdpr', '--format=json', ]; From 3e9b796b2e168952f18a28be70a081415babeb1a Mon Sep 17 00:00:00 2001 From: Alessandro Del Prete Date: Thu, 15 Sep 2022 17:16:34 +0200 Subject: [PATCH 2/3] Fixed typo in config.example.yml --- config.example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.example.yml b/config.example.yml index 5251b17d5..4a35b5305 100644 --- a/config.example.yml +++ b/config.example.yml @@ -16,5 +16,5 @@ notifications: speedtest: enabled: true schedule: '*/60 * * * *' # every hour - ookla_server_id: null # specify a server ID to use a sepecific server + ookla_server_id: null # specify a server ID to use a specific server tz: 'UTC' From 112708e18e0fb557934b1d946c25526fd05fef8a Mon Sep 17 00:00:00 2001 From: Alessandro Del Prete Date: Wed, 18 Jan 2023 18:51:18 +0100 Subject: [PATCH 3/3] Added support X-Forwarded-Prefix+TrustedProxies --- app/Http/Middleware/TrustProxies.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 3391630ec..bd073e60a 100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php @@ -12,7 +12,7 @@ class TrustProxies extends Middleware * * @var array|string|null */ - protected $proxies; + protected $proxies = env('TRUSTED_PROXIES', '*'); /** * The headers that should be used to detect proxies. @@ -24,5 +24,6 @@ class TrustProxies extends Middleware Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO | - Request::HEADER_X_FORWARDED_AWS_ELB; + Request::HEADER_X_FORWARDED_PREFIX | + Request::HEADER_X_FORWARDED_TRAEFIK; }