News for hackers. Stuff that matters.
Re:I wish my web server were in the corner of my room by graton on Tuesday October 11, 2022 @03:46PM (#33168309)
One option would be to use Cloudflare Tunnel [1]

You would run a program on your system which connects to Cloudflare. The traffic goes to Cloudflare first, and then gets forwarded to your system.

[1] https://blog.cloudflare.com/tunnel-for-everyone/

Re:I wish my web server were in the corner of my room by anony23 on Tuesday October 11, 2022 @06:00PM (#33169806)
I like ngrok
Re:I wish my web server were in the corner of my room by theodric on Tuesday October 11, 2022 @07:29PM (#33170639)
Cloudflare tunnel even lets me host a vanity website (potateaux.com) from a NAT'd LTE uplink using a regular phone hotspot. Game-changer, especially given the price!
Re:I wish my web server were in the corner of my room by lucb1e on Tuesday October 11, 2022 @07:30PM (#33170645)
I keep being amazed how the self-hosting community loves to recommend "just send all your traffic through a bigcorp".

It's the antithesis of self hosting and it's in literally every big thread about self hosting on HN or r/selfhosted or such.

Whether it's to protect from DDoS attacks from some unknown baddies that are out to get you (never happened to me and I host all sorts of crap, including user-uploaded content), to speed up loading in remote parts of the world by 200ms (I tested my site on cloudflare in ~2015 and it didn't work at all, it just literally forwarded every request and waited for a reply), or apparently now to catch downtime somehow (the brand "Cloudflare Tunnel" instead of suggesting an open source caching service running on any old VPS from a friendly vendor near you).

Re:I wish my web server were in the corner of my room by anderspitman on Tuesday October 11, 2022 @09:41PM (#33171712)
Cloudflare Tunnel can be a step in the right direction. That said, I maintain a list of selfhosted alternatives here:

https://github.com/anderspitman/awesome-tunneling

Re:I wish my web server were in the corner of my room by stefandesu on Wednesday October 12, 2022 @03:43AM (#33174032)
Nice, thanks for the list! Do you have any recommendation how to tunnel from a VPS to my home server if I'm already using Tailscale? Just use any old reverse proxy like Nginx/Traefik/Caddy?
Re:I wish my web server were in the corner of my room by francislavoie on Wednesday October 12, 2022 @04:02AM (#33174161)
Caddy supports .ts.net domains and will pull the cert from the running Tailscale daemon on your system. And even better integration is coming soon, Tailscale is working on things.
Re:I wish my web server were in the corner of my room by stefandesu on Wednesday October 12, 2022 @04:43AM (#33174429)
Sounds great. I'm not in a rush, so maybe I'll just wait until Tailscale releases whatever they are working on.
Re:I wish my web server were in the corner of my room by anderspitman on Wednesday October 12, 2022 @10:25AM (#33177430)
Yep, exactly. Just use the Tailscale IPs or domains in your reverse proxy config.
Re:I wish my web server were in the corner of my room by nine_k on Tuesday October 11, 2022 @11:10PM (#33172317)
I'd say that "self-hosting" is defined by where your processing and data reside, who controls these.

But if you want to be accessible to the outside world, you need to direct your traffic outside; I don't see a substantial difference between routing your traffic through Cloudflare, Comcast, Equinix, or any other major connectivity provider.

Re:I wish my web server were in the corner of my room by lucb1e on Thursday October 13, 2022 @06:45PM (#33197454)
> I'd say that "self-hosting" is defined by where your processing and data reside, who controls these.

And I would mostly agree so long as you're the only one who has access to said data. There will always be "ISPs", of sorts, that your data needs to pass through; that's simply how the internet works.

The nitpick about Cloudflare is that they are starting to act as a gateway to the internet. Maybe you can turn their fronting off if they start giving you trouble, or maybe your registrar also runs behind Cloudflare. Anyway, bit of a philosophical discussion how much power to vest in one company.

The real trouble is that their main offering involves giving them the private keys to your traffic. I don't know if that's also the case with this Tunnel product, but at least for regular websites, then they process your actual data, as with the bank example (a colleague at said bank was not happy).