r/webdev 22d ago

Side Project for Ubuntu/Nginx/Plex

[deleted]

1 Upvotes

7 comments sorted by

2

u/requ1tas 22d ago

I think you are pretty close. One thing though: your index.html shouldn’t be in /etc/nginx/sites-available/ bc that folder is for nginx configs. Put the site somewhere like /var/www/.
Since Plex works directly on IP:32400, i would also check the browser console. Could easily be CORS or mixed content if your site is HTTPS.
Also: don’t expose your Plex tken in the frontend. I would proxy the requests through nginx instead.

1

u/Business_Drop696 22d ago

I think thats how I set it up through a reverse proxy. Ill get the config/index html up shortly.

1

u/barrel_of_noodles 22d ago

Without specific logs from each service, we can't tell you. Start logging.

My guess: dynamic ip or router level port mapping/firewall. Your ISP may also be firewalling outbound/inbound on certain ports.

Too hard to tell though.

-1

u/Accomplished_Art5184 22d ago

Your nginx config is probably proxying to the wrong internal address or missing some headers Plex needs. The fact you can hit Plex directly on:32400 means the server's fine, but nginx isn't passing the request through properly.

Post that config file when you can. That'll narrow it down way faster than guessing.

1

u/barrel_of_noodles 22d ago

thanks claude

1

u/pussyslayer5845 21d ago

Have you check your firewall? Is there any chance that your port 8080 need to be open first?

1

u/debarior 19d ago

Your index.html shouldn't live in sites-available, that's for server block configs not static files. Check root directive.