Jellyfin Forum
Docker Image behind NGINX, error 400 - 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: Docker Image behind NGINX, error 400 (/t-docker-image-behind-nginx-error-400)



Docker Image behind NGINX, error 400 - axenn - 2023-12-26

Hi,

I tried a lot but i have always a 400 error, i don't understand why.

At the begining i  modified my config file to have upstream to another webapp image i have, and it worked perfectly. At the end i followed the NGINX tutorial and user 127.0.0.1 as the docker container IP, problem still the same.

I would to user it from wan.

Sincerily.


RE: Docker Image behind NGINX, error 400 - TheDreadPirate - 2023-12-26

Set the IP to the actual IP of the jellyfin container. Depending on your setup, 127.0.0.1 won't reach Jellyfin.


RE: Docker Image behind NGINX, error 400 - axenn - 2023-12-27

hi, thank you for your answer.

as a dumb i wrote the wrong port, i didn't set the default port in entry for the docker image.

Now i changed it, it's a 502 552 error.
I removed SELinux for the while, but it's not enough.

For the ip i modified 127.0.0.1 to try with the one used by the docker in its subnet, but problem remains.


PS: bridge mode configuration


RE: Docker Image behind NGINX, error 400 - axenn - 2023-12-27

ok i think i found... it was a 400 finally.

i set the line : 'proxy_set_header Host $host;' BUT ... There were a little space just before 'HOST'.

I understood it by wanting to install a certificate with certbot despite the fact i could'nt connect, just to see if there were a limitation somewhere by not using ssl.

Nginx -t didn't see any error. But Certbot said me 'Could not parse file: /etc/nginx/conf.d/XXXX.conf due to Expected stringEnd, found 's' (at char 0), (line:1, col:1)"


RE: Docker Image behind NGINX, error 400 - TheDreadPirate - 2023-12-29

(2023-12-27, 06:11 PM)axenn Wrote: Nginx -t didn't see any error. But Certbot said me 'Could not parse file: /etc/nginx/conf.d/XXXX.conf due to Expected stringEnd, found 's'  (at char 0), (line:1, col:1)"

Check this post out?
https://community.letsencrypt.org/t/certbot-nginx-expected-string-end-found-http/185067/3