Skip to content

Commit

Permalink
Improve the proxy configuration per fideloper/TrustedProxy#115 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix933 committed Jun 24, 2020
1 parent 502b2ff commit 186df87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BrefServiceProvider.php
Expand Up @@ -48,7 +48,8 @@ public function register(): void
Config::set('view.compiled', '/tmp/storage/framework/views');

// Allow all proxies because AWS Lambda runs behind API Gateway
Config::set('trustedproxy.proxies', '*');
// See https://github.com/fideloper/TrustedProxy/issues/115#issuecomment-503596621
Config::set('trustedproxy.proxies', ['0.0.0.0/0', '2000:0:0:0:0:0:0:0/3']);

// Sessions cannot be stored to files, so we use cookies by default instead
$sessionDriver = Config::get('session.driver');
Expand Down

0 comments on commit 186df87

Please sign in to comment.