R
RunPod8mo ago
EvaNi

Can’t start web app on 80 port cpu based pod

Hi everyone! I have a web app. I used nginx for configuration proxy. I started an app via http-server with port 4000, which is also opened via tcp. I expose tcp ports 80 and 443 on start of the pod.(I am not sure, maybe I should open Http ports 80 and 443) When I try to open ip address, I did not see my site. Did I miss something? I am mostly interested in port exposing, because I do not understand how this affects my configs. Thank you in advanced!
Solution:
you cant pick what port you want to have external if you exposed port XX TCP it will get random assigned port SO PORT yyyy WILL POINT TO INTERNAL PORT xx...
Jump to solution
5 Replies
EvaNi
EvaNiOP8mo ago
And also, on start cpu pod with Runpod Ubuntu it has predefined /etc/nginx/nginx.conf. Should I change it according my config?
Madiator2011
Madiator20118mo ago
nope external ports are always random
EvaNi
EvaNiOP8mo ago
Ok, but my main question how to start my app. If you have some instructions, how to create do that, it will be really helpful. Because for now I can’t understand where is the problem. Or we can somehow create it like a cookbook for the site. Or you mean, that my external pod port should be 443, but I can’t configure it now?
Solution
Madiator2011
Madiator20118mo ago
you cant pick what port you want to have external if you exposed port XX TCP it will get random assigned port SO PORT yyyy WILL POINT TO INTERNAL PORT xx
EvaNi
EvaNiOP8mo ago
Got it! Thanks
Want results from more Discord servers?
Add your server