sinkcup / laravel-demo

Laravel Demo(production Docker, CircleCI, Lint, Unit Testing)
0 stars 3 forks source link

Laravel asset detect HTTPS behind load balancer #8

Closed sinkcup closed 5 years ago

sinkcup commented 5 years ago

SSL cert is on the load balancer, web servers are behind the load balancer, so Laravel can not check HTTPS.

solution:

php artisan vendor:publish
# chose provider Fideloper\Proxy\TrustedProxyServiceProvider

edit config/trustedproxy.php:

    'proxies' => env('TRUSTED_PROXIES', '*'),