this post was submitted on 01 Jul 2025
97 points (99.0% liked)

Selfhosted

61378 readers
307 users here now

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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
top 16 comments
sorted by: hot top controversial new old
[–] renegadespork@lemmy.jelliefrontier.net 14 points 1 year ago* (last edited 1 year ago) (1 children)

Hold off on this one if you use the official docker container.

This update has some broken dependencies the prevent it from starting correctly: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4606

[–] mobotsar@sh.itjust.works 1 points 1 year ago

It works fine for me, fwiw

[–] teppa@piefed.ca 1 points 1 year ago (2 children)

Theres another webserver called Caddy that is pretty nice.

[–] EncryptKeeper@lemmy.world 6 points 1 year ago (1 children)

Caddy is my web server of choice but it doesn’t have a UI like NPM.

[–] illusionist@lemmy.zip 1 points 1 year ago

My config is so barebones it doesn't need a UI.

But when I started out, a UI would've been amazing

[–] nucleative@lemmy.world 1 points 1 year ago (5 children)

I'm an old school nginx pro. So I keep using nginx for reverse proxies because it's what I know. What does caddy have to offer (or traefik is anyone wants to jump in)? Are they just optimized for this function and more modern?

[–] couch1potato@lemmy.dbzer0.com 3 points 1 year ago

Caddy config ("Caddyfile") is super easy to configure. In some cases it can be just one line to reverse proxy something. Search for a caddyfile example and you'll see.

[–] Nibodhika@lemmy.world 3 points 1 year ago

Configuration is much easier, e.g. this is the full config you need to expose nextcloud on nextcloud.example.com (assuming caddy can reach nextcloud using the hostname nextcloud)

nextcloud.example.com {
        reverse_proxy nextcloud
}

Comparing that to ngnix configs that need a template for each different service (although to be fair they're mostly the same).

[–] teppa@piefed.ca 2 points 1 year ago* (last edited 1 year ago) (1 children)

I've just had a lot more success using Caddy when it comes to things that require mod rewrites and stuff on Nginx. I dont know what they've done differently on the back end but the compatibility with random types of web server software seems to play nicer. Also theres Certbot integration built in which is nice.

[–] nucleative@lemmy.world 1 points 1 year ago

Makes sense, it seems like Caddy is like a Swiss army knife and nginx is now the whole Home Depot.

A decade ago or so nginx was the swiss army knife to Apache

[–] KarnaSubarna@lemmy.ml 1 points 1 year ago (2 children)

Why not Traefik as reverse proxy?

[–] anyhow2503@lemmy.world 3 points 1 year ago

Using Traefik outside of k8s is for masochists. Especially after configv2. Caddy is by far the easiest reverse proxy to configure and has the sanest defaults.

[–] dethmetaljeff@lemmy.world 2 points 1 year ago

What they're asking is why Traefik/Caddy and not nginx? Do they offer anything that nginx doesn't? Nginx is pretty tried and true and honestly, in this space, I personally prefer tried and true over new and shiney unless new and shiney offers something I need that old faithful doesn't.

To be fair, I was an Apache hold out for a looong time until I accepted my lord and savior nginx into my heart.

[–] illusionist@lemmy.zip 1 points 1 year ago

I was also used to npm. But caddy(file) is much cleaner and nicer and less hassle. It can be more difficult to set up because you may have to learn some things as it has no ui

[–] 872XXE@feddit.org 1 points 1 year ago (1 children)

Question: Can npm Import my existing configs, i have written by hand?

[–] GreenKnight23@lemmy.world 5 points 1 year ago

....can we call it nxpm?

I have trauma with the other one.