Hacker News new | past | comments | ask | show | jobs | submit | nodejs-news's comments login

Any feedback ?


I'm a great self-hosting fan, behind my DSL connection using 2 x RaspberryPI. I have 3 static web sites, 2 with Jekyll, 1 with Hugo, with great perf :

checkout webpagetest -> https://www.webpagetest.org/result/161123_0R_8RDY/

and feel free to check my 3 web sites:

- http://www.it-wars.com - http://www.louer-hendaye.com - http://www.nodejs-news.com

Init : 2 RaspberryPi + electric plugs : 2x 30$ + 2 x6$ Monthly bill: electricity : about nothing DSL : 30$

Enjoy!


Can you explain your setup and how you did your self hosted sites?


Simply install any linux distro of your choice (mine is Ubuntu) and fire up apache/nginx to load in your HTML. Then port-forward 80 to your raspberry pi IP address and you are done. If you are on dynamic IP (which most of the residential broadband does), set up dynamic DNS and add a CNAME record in your DNS to point your custom ___domain to your dynamic ___domain - this way visitors will be able to access your site even after your IP changes.


I have 2 raspi one with haproxy, one with nginx with 3 vhost. Haproxy was because I've planned to have several raspi to loadbalance traffic across. My DSL line give me 1Mb/sec. When writing a new post a send 10x time to optimize pictures to be able to serve more people. each day I've about 150vu on each web site. One take away: after Jekyll or Hugo finished static page generation I've a bash script to gzip every file to avoid raspbi to make it at the fly, and nginx setup for that is : gzip_static on;

On my DSL router I forward all port:80/tcp traffic to my haproxy raspi.


You have a static IP?


You can use a client to update the record of your dynamic IP. I don't know if that's what he's doing, but it's in all the Pi web hosting tutorials.


The solution you propose is problematic as you'll have random redirection problems even if your script updates your DNS every 15 seconds.


Yes a have a static ip, but DynDns like service providers works too. I use then for years, before my DSL provider gave me one :)


At least a RSS stream will be needed ?!


Yes I just made a copie paste to let the community know The information come from this 2 @Nodejs tweets :

http://twitter.com/nodejs/status/210160851225821184 and http://twitter.com/nodejs/status/210218802451972097

Best


I create the account for nodejs-news few weeks ago :) I'm green :p


according to the author, these 2 videos are the beginning of the series ! I hope, because, I made this post, that next videos will give us more node.js !? Anyway to have multiplayer realtime game node.js and socket.io are the ATeam ? I will update my blog post on nodejs-news.com as soon as the author will add new one.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: