I have built an application with Frontend: nuxt, Backend: node and Database: postgres. I want to publish this website on a domain that I have.
I am looking for VPS solution to host it, as they are a bit cheaper than other available options like AWS, hostinger...
I tried ubuntu VPS and run my node and nuxt using pm2 and installed postgres on it. Everything was running fine.
But I am a bit skeptical to use VPS in terms of security.
Can you please suggest some best practices to make it secure? what should be made publicly accessible and what not? is it a good solution to start with VPS? Is there any better solution with less initial investment?