Limit DDoS risk with Nginx

DDoS Limit : limit 100 requests or connects per ip working with Cloudflare also

vi /etc/nginx/nginx.conf

at the begining of the http, add:

#Max request per ip
limit_req_zone $binary_remote_addr zone=flood:10m rate=100r/s;
limit_req zone=flood burst=100 nodelay;
#Max Connect per ip
limit_conn_zone $binary_remote_addr zone=ddos:10m;
limit_conn ddos 100;

Is that working solution with Cloudflare, and what can you suggest for limits in nginx config?