Giveth / giveth-dapp

Giveth Dapp for crowdfunding and managing donations on the ethereum blockchain.
https://beta.giveth.io
GNU General Public License v3.0
359 stars 230 forks source link

Add exclude ip in nginx config #2539

Open mohammadranjbarz opened 3 years ago

mohammadranjbarz commented 3 years ago

related to Giveth/feathers-giveth#610

mohammadranjbarz commented 3 years ago

@aminlatifi I've tried to do as these ways

https://serverfault.com/questions/177461/how-to-rate-limit-in-nginx-but-including-excluding-certain-ip-addresses

https://www.nginx.com/blog/rate-limiting-nginx

but I got below errors after reloading Nginx, could you help me? ( I don't have strong experience in Nginx)

nginx: [emerg] unknown directive "$whitelist" in ....

nginx: [emerg] unknown directive "$limit" in ....