Locally, everything works fine on HTTP (http://192.168.1.222).

Externally, however, only PARTIALLY on HTTPS (https://mydomain:8344) through Caddy. I can connect to the site (first picture), but streams won’t start.

Any idea why this is the case? My theory is that the RTSP port (554) is for streaming and that when I go to the local address (that is on 80), the site ITSELF initiates a connection to port 554 in the background. However, this apparently does not happen when I connect remotely.

EDIT: In the same Caddyfile, I reverse proxy my Jellyfin server that only uses a single port, and that works fine. The Caddy server runs on my Ubuntu Server 23 on Raspberry pi 5.

  • Possibly linux
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    The stream isn’t http as it is likely a web socket which caddy doesn’t support.

    You shouldn’t use a reverse proxy for this. Just setup a VPN or a mesh VPN like netbird.