Reverse proxy + certificat let's encrypt + Custom URL for server => but unsecured when i play on wan

Good morning,

I have a domain name, and I have a subdomain for plex, with let’s encrypt ssl certificate, I also defined this domain in settings/network/Custom URL for server

I can access my plex via my domain in HTTPS, however, when I watch a video from outside it is considered insecure (ios, windows app…)? I don’t understand why

I don’t understand how my connection cannot be secure knowing that plex is only accessible via this subdomain and via port 443 with a certificate

on the other hand when I read on my local network it is considered secure…

Another point, even when I read a video from Chrome on my https domain name, my connection is considered unsecured.

Answer by myself, I finally found it after searching for a while.
for the reverse proxy it must be pointed to https and not http so that plex considers the connection secure.
it makes no sense to create a reverse proxy pointing to https, there are headers for that.
but hey it works!

https://www.reddit.com/r/PleX/comments/1dw2omz/plex_behing_reverse_proxy_with_ssl_but_no_secure/