How to set set_real_ip_from for discourse

To be specific, my installation is running behind a nginx proxy as described here

is it possible to enable the cloudflare template?