SOLVED: Reverse Proxy - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access) +---- Thread: SOLVED: Reverse Proxy (/t-solved-reverse-proxy) Pages:
1
2
|
Reverse Proxy - teledyn - 2024-08-19 I followed the instructions on https://jellyfin.org/docs/general/networking/apache and Jellyfin works fine from the LAN, but using Firefox or the Android app from outside, it says the server is not found, if I connect to the same url from the LAN (where the IP will be dnsmasq'd as local) the app works, but if I then switch off wifi, it times out. I have apache and jellyfin on the same machine and have used both the LAN IP and 127.0.0.1 as the SERVER_IP in the apache config, and have added the LAN IP and the public IP to KnownProxies in jellyfin.conf (together and separately). My apache2 site config is identical to the networking/apache, only changes are hostname and SERVER_IP, and my certbot certificates are fine. I also tried port-forwarding 8096 to the jellyfin machine, but still no remote access. In the logs I see: Code: [Mon Aug 19 18:19:17.753566 2024] [proxy:error] [pid 618922:tid 618953] (111)Connection refused: AH00957: http: attempt to connect to 192.168.0.13:8096 (192.168.0.13:8096) failed with this using the example conf: Code: ProxyPass "/socket" "ws://192.168.0.13:8096/socket" which works fine on the LAN. Is there some other essential step? RE: Reverse Proxy - goerdi - 2024-08-20 hi ! Are you using an extra virtual host for jellyfin ? or only the base URL ? Ciao Gerd RE: Reverse Proxy - TheDreadPirate - 2024-08-20 Can you share the full apache config? Censor the domain name. RE: Reverse Proxy - teledyn - 2024-08-20 (2024-08-20, 03:57 PM)TheDreadPirate Wrote: Can you share the full apache config? Censor the domain name. If I censor the domain name, I believe it will read absolutely identical to the example given in networking/apache but I've attached it. (2024-08-20, 11:13 AM)goerdi Wrote: hi ! I am not sure what you mean by extra virtual hosts, but yes, this is a virtual host sharing apache with four other virtual hosts. Are you thinking that some of the communications from Jellyfin may be referring to itself only as an IP and so any requests coming in would go to the Apache default? RE: Reverse Proxy - teledyn - 2024-08-20 To clarify my setup here, I have an RPI 4B+ that is running dnsmasq and apache2; this unit has no firewall itself, but it is behind a Hitron router that forwards ports 80 and 443 to the RPI. All domains will appear as LAN IPs within the lan (because dnsmasq is the nameserver) and as the router's IP to the outside world. I have Wordpress, Icecast2 and Nextcloud running on this setup without issue, Pixelfed too although I believe its trouble not accepting follows' Stories is a postgresql issue, and Mobilizon which also seems to function fine (the software itself is clunky). This is all running under Debian12 and using PHP8.3-FPM. In the networking.xml I have tried the IP of the apache machine (same as the jellyfin machine) and the public IP of the router, and both, as the KnownProxies. One my android phone off Wifi, I get the Server Unavalable, I switch on Wifi and reload, and it logs in no problem. RE: Reverse Proxy - goerdi - 2024-08-20 Hi ! I have it similar except ProxyPass "/socket" "ws/127.0.0.1:8096/socket" ProxyPassReverse "/socket" "ws/127.0.0.1:8096/socket" ProxyPass "/" "http://127.0.0.1:8096/" ProxyPassReverse "/" "http://127.0.0.1:8096/" in jellyfin network setup i do not have any other entries as default Ciao Gerd RE: Reverse Proxy - TheDreadPirate - 2024-08-20 Oh, wow. Almost a 1-to-1 copy and paste of our docs, minus your domain. Ok. Did you install the extra apache modules? Code: sudo a2enmod proxy proxy_http ssl proxy_wstunnel remoteip http2 headers RE: Reverse Proxy - teledyn - 2024-08-20 (2024-08-20, 06:56 PM)TheDreadPirate Wrote: Oh, wow. Almost a 1-to-1 copy and paste of our docs, minus your domain. Ok. Here's the whole list: Code: $ ls --color=never /etc/apache2/mods-enabled/ RE: Reverse Proxy - TheDreadPirate - 2024-08-20 Can you show us the contents of /etc/jellyfin/networking.xml? RE: Reverse Proxy - teledyn - 2024-08-20 Here again, very trivial changes from the default: Code: <?xml version="1.0" encoding="utf-8"?> |