for AGH, following was working to me. I did some testing on another topic. Maybe, it could be reused One IP versus several services, how? - #15 by Joulinar
For Jellyfin some configuration to be done according to the config file. Did you have done this?
# use a variable to store the upstream proxy
# in this example we are using a hostname which is resolved via DNS
# (if you aren't using DNS remove the resolver line and change the variable to point to an IP address e.g `set $jellyfin 127.0.0.1`)
set $jellyfin jellyfin;
resolver 127.0.0.1 valid=30;