Hacker News new | ask | show | jobs
by penguinlinux 2483 days ago
Hi, Yes this was a very simple project. Basically I had a raspberry pi zero w , installed apache and setup a virtual host that forwards all request to a another back end. Basically the Kiwix software that serves the wikipedia Zim file runs on port 8080. The raspberry pi has a 32 gig card and not enough space to host the 82 gigs of the wikipedia zim file. I had a spare external drive that I formatted in ext4. Originally the drive was formatted as extended FAT32 but the raspberry pi showed a lot of high CPU when accessing the Fat32 partition. I formatted it to ext4 and mounted the volume and downloaded the wikipedia zim file. Then I created an index file for Kiwix server and, started the Kiwix server and restarted apache had wikipedia running on a raspberry pi zero w. It did crash, I was thinking of adding cloud front as I have a free AWS account but I haven't got to it yet :)
1 comments

Very cool! Depending on the volume you are expecting but I would consider Cloudflare over Cloudfront. I don't think you are doing anything incompatible with Cloudflare's free tier and absolutely worst case is they drop you if you are attracting enough traffic to impact their other customers. With Cloudfront you might end up with an unexpected bill if you breach the limits of the free tier.