im pretty sure its working as when i check it out using mobile with wifi turned off and go to “domain.com/jellyfin” it auto redirects me to https as it puts it infront of it
Serving all sites via HTTPS by default is kind of the main selling point of Caddy. HTTP is always redirected to HTTPS, in contrast to Apache/nginx/lighttpd where such a redirect must always be explicitly configured.
In fact, explicitly configuring it is so ingrained in admins’ minds that some of them like configuring it in everything internet-facing capable of doing so, so there are times I see Caddy configs with a redir statement to :443 in a :80 server block. It’s not wrong, it’s just.. superfluous.
No, in your case, redir redirects /Jellyfin to /jellyfin/ there’s no protocol explicitly specified. However, when you’re accessing /jellyfin, you’re most likely already on HTTPS thanks to Caddy’s default behaviour, so the redirect preserves that for /jellyfin/ as well.
You can use redir to redirect to any target, HTTP or HTTPS. But if that target is Caddy with its default behaviour, you’ll eventually end up with HTTPS.