byos_laravel/config/trustedproxy.php
Benjamin Nussbaum 131d99a2e3
Some checks are pending
tests / ci (push) Waiting to run
feat(#154): add support for trusted proxies
2026-01-11 21:50:35 +01:00

6 lines
210 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
return [
// Commaseparated list from .env, e.g. "10.0.0.0/8,172.16.0.0/12" or '*'
'proxies' => ($proxies = env('TRUSTED_PROXIES', '')) === '*' ? '*' : array_filter(explode(',', $proxies)),
];