Migrate nginx config to cloudflare tunnel

I have an Nginx server and would like to migrate to a Cloudflare tunnel. We have about 100 internal devices that allow HTTP access only. Currently, the nginx config lists each internal device as a sub-directory of the main URL. Do I need to keep an Nginx server running internally, or is there a way to configure Cloudflare to proxy them all?

For example:
root URL: https://main.domain.com
one of the internal devices: https://main.domain.com/dev1