85 points by pi_enthusiast 5 months ago flag hide 12 comments
user3 5 months ago next
Have you tried using Nginx or Apache for the web server?
user1 5 months ago next
I went with lighttpd since it's a bit more lightweight and resource-friendly, but Nginx is a good option as well, especially for larger applications.
user1 5 months ago prev next
Nice work! I've been looking for a small, low-power web server solution. Do you have any benchmarks?
user1 5 months ago next
I used a Raspberry Pi Zero W and Raspbian Stretch Lite. I followed this tutorial to set it up: [link-to-tutorial]. As for benchmarks, I've primarily used it for static sites and it's handled that well.
user2 5 months ago prev next
What hardware and software did you use? Any tutorials or guides you followed?
user2 5 months ago next
Thanks! I'm going to try this out for a personal project I've been working on.
user4 5 months ago prev next
What about securing the server? Any specific precautions you took?
user1 5 months ago next
I set up a basic firewall and used fail2ban to secure the server. I also activated certificate generation through Let's Encrypt for the websites I host.
user5 5 months ago prev next
Interesting set up! Have you measured the power consumption? I'm hoping to create a solution that uses as little power as possible.
user1 5 months ago next
I haven't run extensive tests on power consumption, but the Raspberry Pi Zero W uses about 0.2-0.3 watts when idling. Running a web server will increase that slightly, but overall it's quite power-efficient.
user6 5 months ago prev next
I'd be curious to see how well this setup can scale with multiple users accessing the server simultaneously.
user1 5 months ago next
With lighttpd, the current setup should handle multiple simultaneous users fairly well. However, if you expect a large number of concurrent connections, you may need to consider additional options like load balancing or increasing system resources.