How should my server setup work/look/be?

specs for all servers: OS: Ubuntu 14.04 PN: Yes RAM: 512MB, except webserver which is 2GB.

God day! I’m very new at setting up multiple servers to create a functioning environment. In front i have NGINX on a 512MB server serving traffic over ssl. It also proxies all traffic for my mailserver and my webservers.

Here’s my current configuration: image

Here are my questions to you pro’s :)

  1. Now want a email nodejs app running to view emails send them and such, should i put this on my mailserver or my webserver?
  2. Should I split my webserver into smaller servers?
  3. If i do setup a nodejs app for mails on my webserver how should it interact with the mail server to load emails, sockets?
  4. should i ghost my servers behind the nginx, except for ssh port?
  5. is it smart to tunniel my ssh connection through the nginx server to the servers behind it?
  6. how should i store my emails, nosql, or as every one else recomends; as files?
  7. tips to a newbie? :D

PS. to moderators, theres a bug when writing threads: if you select more than 10 tags, they get delete and you cant choose any of them afterwards :)

Regards Codewolf

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

These articles provide a nice high level overview of different common architectures and discusses some of the pros and cons of each. They should be a useful entry point to thinking about the the kinds of questions you’re asking:

If you’re looking for a bit of a deeper dive, this series gets into details about building out a multi-server production application setups:

The one major drawback that I can see with how you’ve currently implemented your setup is that the Nginx proxy has become a single point of failure. If it goes down, you wouldn’t be able to reach any of your other service. Depending on how critical it is for these service to be highly available, you might want to consider setting something up using Floating IPs to build something with some more redundancy. Check out: