mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
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' => '*',
|
||
|
|
||
|
];
|