Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
blog.mccartie.com
Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
1–10 of 49 posts
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#2https://github.com/h5bp/server-configs-nginx/blob/master/sit...
That github repo is a goldmine for understanding nginx configs too.
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#3Great writeup. One suggestion on the nginx front I might suggest is you add an entry to drop requests for unknown hosts. e.g. http://104.131.41.220 https://github.com/h5bp/server-configs-nginx/blob/master/sit... That github repo is a goldmine for understanding nginx configs too.
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#4Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#5I certainly can understand saving thousands of dollars and improving performance by moving from Heroku to a VPS or bare metal solution, but $90 is not uncomfortable enough for me to warrant the change.
Interesting article!
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#6I used to prefer the flexibility and efficiency of having my VPS setup, and it's certainly cheaper. Over the past 2 years though, I've saved so much time and sanity using Heroku. I certainly can understand saving thousands of dollars and improving performance by moving from Heroku to a VPS or bare metal solution, but $90 is not uncomfortable enough for me to warrant the change. Interesting article!
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#7I wouldn't recommend running Nginx, Unicorn, Rails, Redis, and PostgreSQL all on one instance. Better to offload the databases onto their own VPS's.
Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#8Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#9 nano /etc/nginx/sites-enabled/deafultRe: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails
#10What security-related tasks do you do when setting up a new server? Besides the above, the only things that come to mind for me are:
1. Change ssh port from default. 2. Block unwanted traffic via iptables. 3. Protect ssh with fail2ban.