NewsCrawler.org

How to self-host a static website on a Raspberry Pi securely

The author is new to self-hosting and wants to run a static website on a Raspberry Pi. They ask how to do this securely with open source tools, since search results are mostly SEO content or marketing for paid services. Some people suggested Cloudflare Tunnels[1], but the author feels that using such a provider defeats the purpose of self-hosting. They ask whether this approach is workable, what pitfalls to expect, and for a tag other than devops.

Read the original lobste.rs

Discussion

Most commenters advise keeping private services off the public internet and reaching them through WireGuard[2] or Tailscale, which is mentioned most often. For a public static site, the common advice is to allow only SSH key logins, keep the system updated, close unused ports with a firewall such as UFW[3], and use nginx or Caddy. Several suggest renting a cheap VPS instead of serving from home, because home internet providers may forbid public servers and a home network reveals location details to visitors. Others say a static site on a Raspberry Pi carries little risk, and one commenter calls Cloudflare Tunnels an acceptable compromise when doing everything yourself is too much work.

Sources

  • Lobsters

    How do you actually self-host securely?

    131 points74 comments

Published: First seen: Читать по-русски

Open as a page