How do I set up realip for Cloudflare on Fly.io

According to Cloudflare’s docs:

I need to add ngx_http_realip_module. I’ve already updated my nginx config, but the module itself isn’t available.

The module docs are here:

But I don’t see where in fly.io’s config files, where I should be adding the --with-http_realip_module flag. What’s my next steps?

Could you add more information about this? If you’re running NginX in your VM, then you can do whatever you like with modules, including compiling them if necessary. Why do you believe this module is not available?