Show internal http camera stream when not connected to my internal network

Hello everyone,
I’m having some problems to show the “stream” of my camera when i’m not connected to the internal network.
It is not a regular stream through rstp but using the http server push method (5.8.2 api camera snapshot - HTTP API manual for 2N IP intercoms)

On my internal network this works using the “Picture card” configuration where i could enter the image path.
http://192.168.1.160/api/camera/snapshot?width=640&height=480&fps=10&source=internal

But of course this isn’t available externally, i don’t want to make it availably through reverse proxy or anything, but i wanted HA to pick it up and show it in the app.

I was just looking into a rest sensor to maybe use that:

sensor:
  - platform: rest
  resource: http://192.168.1.160/api/camera/snapshot?width=640&height=480&fps=10&source=internal
    name: Doorbell Stream

But it looks like a did something wrong because my HA memory made a jump in usage (from 25% to 98% or 1 GB to 3.8 GB of memory)

I wanted to create some kind of passthrough that HA could use.
Am i looking in the right direction?
Anyone that might be able to help or has some ideas?

I got lucky with a custom card

type: custom:webrtc-camera
url: >-
  http://192.168.1.160/api/camera/snapshot?width=640&height=480&fps=10&source=internal