FedericoHeichou / PizzaReader

A Manga and Comics reader written in Laravel
GNU General Public License v3.0
16 stars 6 forks source link

Custom trusted proxies #21

Closed FedericoHeichou closed 2 years ago

FedericoHeichou commented 2 years ago

Adding custom proxies to trust in the .env file to prevent IP spoofing. If you have a proxy (you have one if you use a CDN like Cloudflare) you need to add in your .env file

PROXIES=*

Or better, if you have a list of IPs (small example: https://www.cloudflare.com/it-it/ips/

PROXIES=172.64.0.0/13,173.245.48.0/20

I add now this option because all my readers was behind a proxy and I didn't need it.