Hacker News new | ask | show | jobs
by nodejs-news 3496 days ago
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.