I’ve used nginx proxy manager as a reverse proxy for a while now and want to switch because some set ups don’t work well with it. Tried nginx as a reverse proxy but seems kinda complicated and I just don’t really like it… I’ve heard good things about Caddy and how it automatically does the certs for you but heard it doesn’t mesh well with Cloudflare proxy or something along those lines. Caddy is definitely a contender.

What’s a good reverse proxy for a set up using Cloudflare?

Also, a bit off-topic, but is Cloudflare’s proxy really needed? I heard it’s insecure to self host sites without Cloudflare because you’re exposing your ip address and leaving yourself vulnerable but is it really bad to self host without Cloudflare?

@MangoPenguin@lemmy.blahaj.zone
link
fedilink
English
15
edit-2
2d

If you exclusively use cloudflare tunnels you don’t need a proxy on your end unless you want to do split-horizon DNS for local access.

But otherwise, nginx, caddy, traefik, npm, etc… all work fine with Cloudflare. Personally I’m using Traefik and Caddy on my setups right now.

Also, a bit off-topic, but is Cloudflare’s proxy really needed? I heard it’s insecure to self host sites without Cloudflare because you’re exposing your ip address and leaving yourself vulnerable but is it really bad to self host without Cloudflare?

Up to you, cloudflare is a recent thing and hosting was done without it just fine before it came along. Personally I don’t use cloudflares proxy very much, I just use it mostly for DNS management.

K3CAN
link
fedilink
English
21d

What’s a good reverse proxy for a set up using Cloudflare?

Having a reverse proxy behind your reverse proxy is a little redundant, but should work fine. My preference after trying several was nginx. The config takes a little to get used to, but it has a ton of features.

is Cloudflare’s proxy really needed?

Not at all.

Cloudflare just makes configuration a bit easier, especially if you’re behind CGNAT. I wrote a little about them here: https://blog.k3can.us/index.php?post/2025/02/Cloudflare-for-the-Selfhoster

@Xanza@lemm.ee
link
fedilink
English
32d

Caddy. Hands down. No question.

Everything else works fine. Caddy works fine as well, but it’s also super easy.

I heard it’s insecure to self host sites without Cloudflare because you’re exposing your ip address and leaving yourself vulnerable

There’s a lot more to it, and this is only a small part of it, but yes. This is technically true.

but is it really bad to self host without Cloudflare?

Cloudflare is nice to have, but it honestly sucks. I run a private dns stub resolver with my own blocklists (because I don’t trust anyone else to do it) and I have Google DNS, Cloudflare DNS, and a few other DoH resolvers as the upstream source. My stub resolver is set to send requests to all the upstreams at once, and to take the results of the one that responds first. Tracking through prometheus shows that Cloudflare has not once (!) had its results chosen because its average RTT is 700ms. Everyone else is in the sub 100ms range.

Cloudflare was cool until it got popular.

@retro@infosec.pub
link
fedilink
English
11d

I’m interested to hear what doesn’t work with NPM

Well, one thing that doesn’t really work nicely with NPM is Snikket.

ᕙ(⇀‸↼‶)ᕗ
link
fedilink
English
-12d

i stopped using those. too much hassle. just using tunnels now.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 96 users / day
  • 656 users / week
  • 1.55K users / month
  • 4.06K users / 6 months
  • 1 subscriber
  • 4.21K Posts
  • 87.9K Comments
  • Modlog