mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
8d03668d78
Reintroducing trusted proxies via fideloper/proxy: * Upgraded fideloper/proxy to 3.1 * Added fideloper/proxy to Http/Kernel.php * Added fideloper/proxy to config/app.php * Added environment variable APP_TRUSTED_PROXIES to env (with '*' being the default fallback)
23 lines
568 B
PHP
23 lines
568 B
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
* Set trusted proxy IP addresses.
|
|
*
|
|
* Both IPv4 and IPv6 addresses are
|
|
* supported, along with CIDR notation.
|
|
*
|
|
* The "*" character is syntactic sugar
|
|
* within TrustedProxy to trust any proxy;
|
|
* a requirement when you cannot know the address
|
|
* of your proxy (e.g. if using Rackspace balancers).
|
|
*/
|
|
'proxies' => env('APP_TRUSTED_PROXIES') !== null ? explode(env('APP_TRUSTED_PROXIES'), ',') : '*',
|
|
|
|
/*
|
|
* Or, to trust all proxies, uncomment this:
|
|
*/
|
|
# 'proxies' => '*',
|
|
|
|
]; |