ivanomatteo / laravel-device-tracking

a library that allow to track different devices used
MIT License
269 stars 26 forks source link

Add compatibility of IP Address Under Cloudflare/Proxy #16

Open ipaderi opened 1 month ago

ipaderi commented 1 month ago

Got a Laravel application under Traefik proxy and is showing the internal IP Address on the devices.

ivanomatteo commented 1 month ago

Have you tried to set that ip as trusted proxy for laravel?

@ipaderi

See: https://laravel.com/docs/11.x/requests#configuring-trusted-proxies

jonnott commented 3 weeks ago

@ipaderi Sounds like you need https://github.com/monicahq/laravel-cloudflare