Something like the solution found in this thread maybe?
No quote
That isn’t going to work. He’s trying to avoid changing ports but use cloudflare which blocks out the port he’s using.
The most practical solution is to configure a reverse proxy that proxies to another dns that is on cloudflare to a port that is on cloudflare. However, you will also have an issue where the main will also put out whatever port you have configured within the panel. This applies to both m3u and api. So, you will need to prepare your reverse proxy to also permit the new port as well. Along with this, you will need to prepare yourself to update your apps, as well as preparing your users for the change. Doing it this way wort pretty well and provides you a level of cushion that will make the transition easier to deal with. With all of that said, it’s much easier to take these considerations before you build instead of afterwards. Also, having panel based apps makes it a dream because you can push a change and simply advise users to log out, clear cache, and log back in.