←back to thread

221 points whitefables | 1 comments | | HN request time: 0s | source
Show context
bambax ◴[] No.41857017[source]
> I decided to explore self-hosting some of my non-critical applications

Self-hosting static or almost-static websites is now really easy with a Cloudflare front. I just closed my account on SmugMug and published my images locally using my NAS; this costs no extra money (is basically free) since the photos were already on the NAS, and the NAS is already powered on 24-7.

The NAS I use is an Asustor so it's not really Linux and you can't install what you want on it, but it has Apache, Python and PHP with Sqlite extension, which is more than enough for basic websites.

Cloudflare free is like magic. Response times are near instantaneous and setup is minimal. You don't even have to configure an SSL certificate locally, it's all handled for you and works for wildcard subdomains.

And of course if one puts a real server behind it, like in the post, anything's possible.

replies(3): >>41857088 #>>41857339 #>>41857709 #
Reubend ◴[] No.41857088[source]
Is the NAS exposed to the whole internet? Or did you find a clever way to get CloudFlare in front of it despite it just being local?
replies(3): >>41857124 #>>41858097 #>>41860131 #
cheema33 ◴[] No.41857124[source]
You can use CloudFlare Tunnel (https://www.cloudflare.com/products/tunnel/) to connect a system to your cloudflare gateway, without exposing it to the Internet.
replies(1): >>41857342 #
rmbyrro ◴[] No.41857342[source]
Or Tailscale, which is pretty cool piece of tech.
replies(1): >>41857938 #
telgareith ◴[] No.41857938[source]
Tailscale is wireguard with advertising, a convenient UI, and a STUN/TURN server.
replies(2): >>41858385 #>>41858580 #
1. calgoo ◴[] No.41858385[source]
exactly, which means setting up a vps, generating certificates, setting up some type of monitoring to make sure the tunnel is working, etc. I agree that wireguard is the best option, if you have the time and knowledge, but for some dev people that just wants to put up a webpage with a few users, tailscale/cloudflare is a much easier system to maintain (especially as it handles ssl for you as well - to some degree...).