R
RunPod2mo ago
sayuto

HOw can I open port for my pod and run it as a api endpoint

I can not ping to my endpoint I can not run nginx in my pod How can I open the port? I created it with RunPodPyTorch 2.4 and global network enabled
10 Replies
sayuto
sayutoOP2mo ago
@nerdylive I give more detail here
sayuto
sayutoOP2mo ago
sayuto
sayutoOP2mo ago
If nginx can not work, have any way to I can open port and navigate it to 8000?
Jason
Jason2mo ago
Jason
Jason2mo ago
you can open any http port i guess edit pod
sayuto
sayutoOP2mo ago
oh, I seeee, so, have anyway to I can keep data/config of the container? it alway lost all data affter I turn off -> turn on the pod @nerdylive
Jason
Jason2mo ago
container only save on /workspace also i'd suggest use network storage, so you can terminate pod and network storage can be shared to many pod
sayuto
sayutoOP2mo ago
@nerdylive thank you so much, I changed to use "endpoint", it is much better for me, but, I have a concern how can I protect my endpoint? I scared that someone can ddos that
Jason
Jason2mo ago
You use api key to access your endpoint, I think it's already protected from ddos too, to make sure try contacting support on website
sayuto
sayutoOP2mo ago
ah I see, I forgot that point, thank you so much

Did you find this page helpful?