Camera stream through Nginx proxy

Has anyone got a live camera stream working through Nginx, from outside of their network?

I have a setup of external hostname -> Cloudflare DNS -> Nginx Proxy Hassio addin -> Hass.io on RPi3.

I can access the main interface itself with no problems, and can see the camera still image, but when tapping on the video on my phone I don’t ever get a stream. If I access the site using the external hostname from a PC on the LAN, the video plays correctly. It felt like it was using a local hostname to try and access the camera stream, but when checking in Chrome dev tools I can see it’s using the correct external hostname.

Anyone got any ideas of things I can try?

Thanks

Hi

I have the same issue

when i try to play my local stream:
http://192.XXX.XX.XX/api/hls/2d2500ab87f6fcaf4f3fa6071882fd8968cea84d99a47e896bb60949cdd19f01/playlist.m3u8

I get the following error:

404 Not Found
nginx/1.16.0

I run docker-compose with home assistant and linuxserver/letsencrypt containers.