Live data from Hacker News

Digital Ocean: Ubuntu, Nginx, Unicorn, Rails

blog.mccartie.com

1–10 of 49 posts

Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails

#2
Great 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

#3
post #2

Great 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.

Good call. Thanks, man.

Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails

#5
I 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

#6

I 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!

Thanks, David. We use Heroku a TON at work and I absolutely love them. For my small-ish app, I just couldn't afford the extra cash to pay Heroku to manage my app. Thanks for reading!

Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails

#7
post #4

I wouldn't recommend running Nginx, Unicorn, Rails, Redis, and PostgreSQL all on one instance. Better to offload the databases onto their own VPS's.

Agreed. This is just a temporary solution for a small-ish app. Looking forward to solving those problems...

Re: Digital Ocean: Ubuntu, Nginx, Unicorn, Rails

#10
Quick question; I don't know much about setting up a Linux server but I found it interesting the post had nothing related to security besides setting up a ssh key and separate user for deployment.

What 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.

Post reply on HN