How do I set real ip from Cloudflare on GitLab Omnibus?

I’m interested in using Cloudflare for load balancing as they offer a low cost load balancing product with support for multiple origins. I was unable to find the settings for nginx and “set real IP”, can someone give me an example of what I need to put into gitlab.rb to set the correct IP Address from Cloudflare?

Yes I’m aware that I’ll need to set an alternate endpoint for Git clones as Cloudflare may block the HTTP Requests (was going to do ssh.myinstance for that part)