From 1f2028fb13f4624978701337cc5b25f8e566c27a Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 14 May 2022 18:10:38 +0930 Subject: [PATCH 1/3] Update trustedproxy.php --- config/trustedproxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/trustedproxy.php b/config/trustedproxy.php index 608e189d..81cef227 100644 --- a/config/trustedproxy.php +++ b/config/trustedproxy.php @@ -23,5 +23,5 @@ return [ * how many proxies that client's request has * subsequently passed through. */ - 'proxies' => env('TRUST_PROXIES', ''), + 'proxies' => env('TRUST_PROXIES', '*'), ]; From 05371b3c2fdb71f3490f1301443b1967d3a9ac39 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 14 May 2022 18:41:29 +0930 Subject: [PATCH 2/3] Update home.blade.php --- resources/views/admin/diagnostics/home.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/admin/diagnostics/home.blade.php b/resources/views/admin/diagnostics/home.blade.php index c55645e7..ca605a61 100644 --- a/resources/views/admin/diagnostics/home.blade.php +++ b/resources/views/admin/diagnostics/home.blade.php @@ -184,6 +184,11 @@ Storage Filesystems default (local/s3/spaces): {{ config_cache('filesystems.default')}} +
  • + Network TrustedProxy: + {{ config('trustedproxy.proxies') }} +
  • +
    From a47deef76f4619f71f9884191069c841d8c182c3 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 14 May 2022 18:42:49 +0930 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb7ca5aa..69d4e19b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Add storage flags to admin dashboard diagnostics ([#3444](https://github.com/pixelfed/pixelfed/pull/3444)) - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1)) - Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24)) +- Add trusted proxies flag to admin dashboard diagnostics ([#3450](https://github.com/pixelfed/pixelfed/pull/3450)) ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)