News for hackers. Stuff that matters.
Re:NGINX Proxy Manager by nyolfen on Monday May 23, 2022 @10:43AM (#31479664)
here's my caddy config for a reverse proxy with TLS:

sub.domain.com { reverse_proxy localhost:8080 }

Re:NGINX Proxy Manager by mholt on Monday May 23, 2022 @02:56PM (#31483467)
You don't even need a config file for that!

    $ caddy reverse-proxy --from sub.domain.com --to localhost:8080
Done :)
Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @11:49AM (#31480570)
You mean

    sub.domain.com, sub.domain.com. { reverse_proxy localhost:8080 }
?

Because caddy currently doesn’t handle DNS names correctly, so you have to duplicate every single virtual hostname config (it’s a long-standing open bug)

[EDIT: Thanks to francislavoie for reminding me about the shorter syntax for this]

Re:NGINX Proxy Manager by francislavoie on Monday May 23, 2022 @12:17PM (#31480983)
Actually, we mean:

    sub.domain.com, sub.domain.com. {
        reverse_proxy localhost:8080
    }
But seriously. Can you stop posting about this every single time there's even a vague mention of Caddy on HN? It's tired. You've gotten your answer before. Huge majority of people don't care about trailing dot domains.

Trailing dots are complicated and really not worth the complexity it would involve to support them. See https://daniel.haxx.se/blog/2022/05/12/a-tale-of-a-trailing-...

Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @01:31PM (#31482094)
> Can you stop posting about this every single time there's even a vague mention of Caddy on HN? It's tired

It’s a genuine issue I’ve got with Caddy, and if someone recommends Caddy, I’m justified to mention the drawbacks of Caddy.

In this case, a user recommended switching from nginx to Caddy, and nginx users (who expect trailing dot domains to just work) should keep this drawback in mind.

Every time you compare Caddy or Traefik to nginx or apache, you should expect to also see the drawbacks of Caddy and Traefik mentioned.

Re:NGINX Proxy Manager by mholt on Monday May 23, 2022 @02:59PM (#31483503)
You're not being a productive member of the community. You only complain about Caddy, instead of giving solid technical arguments for your case. We have presented ample evidence, experience, and technical reasoning to support our argument, but you continue to ignore the logical, technical, and complex arguments and instead complain to rack up fake Internet points here. We want to make a better product, but you need to convince us that your way is better than all the evidence, experience, and technical reasons we have already presented.
Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @03:15PM (#31483686)
See that’s exactly the issue. You expect me to do work and spend time just to convince you to be standards-compliant.

How can I trust caddy complies with standards in other areas if caddy isn’t willing to follow the standard (which really doesn’t take much work) in this area? It’d be different if the de facto and the de jure standard diverged, as e.g., with IRC, but that’s not the case. nginx, Apache, IIS, Google’s GWS, they all follow the standard exactly, it’s just traefik and caddy that don’t.

It’s not an issue of this situation in of itself, it’s an issue of eroding trust. It’s the famous brown m&ms.

P.S.: Your arguments explain why implementing this would be a lot of work (keeping the ticket open as known issue is something I’d be fine with), but they can’t justify ignoring the standard and closing it as wontfix.

Re:NGINX Proxy Manager by francislavoie on Monday May 23, 2022 @03:28PM (#31483814)
> (which really doesn’t take much work)

Except it actually does take a lot of work, because it's not as simple as you make it out to be. It's very complex.

Look at the blog post I linked above from the author of cURL, looks at how much time was wasted just to support that "feature". If trailing dots weren't supported, there would be less code, and less headaches for everyone.

And either way, your argument that because we aren't "standards-compliant" here means we won't follow standards elsewhere is the slippery slope fallacy. Show us evidence of where we aren't standards compliant, then we'll talk.

Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @03:59PM (#31484130)
I originally wrote a detailed response to this, but instead I’ll just say this:

It’s one thing to limit the scope of your project. cURL is trying to support every de facto and de jure standard out there, your project doesn’t have to. A lot of tail-end features have very diminishing returns. My own projects don’t do it either.

But it’s something entirely else if you just close the issues as WONTFIX, claim they’re not part of a standard (until you’re proven wrong), then claim it’s not used in the real world (it is, otherwise cURL wouldn’t implement it), then verbally attack users who point out that you’re not supporting it.

Just accept it, acknowledge that you’re not supporting it and that it’s not part of your scope. Own your faults, just be honest.

I’ve got far more persistent and far more annoying users complaining about missing features in Quasseldroid on every release or post for the past decade, but that’s no reason to get angry with them.

Re:NGINX Proxy Manager by francislavoie on Monday May 23, 2022 @04:07PM (#31484198)
> then verbally attack users who point out that you’re not supporting it

I didn't verbally attack you. I just asked that you stop bringing it up on every thread where Caddy is mentioned. It causes us stress and wastes our time to have to re-explain ourselves the same way every time. Yes I used an aggressive tone, but it's because we're frustrated to continue hearing it. We always have in the back of our mind "is that one person going to post about trailing dot domains _again_?"

> Just accept it, acknowledge that you’re not supporting it and that it’s not part of your scope.

We did that. That's what a WONTFIX is.

Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @04:58PM (#31484688)
Then why do you comment on it at all, if it causes you so much stress? I didn't claim anything wrong, did I? I didn't post in an unfriendly tone either?

It sounds like you don't accept that it's a shortcoming, instead trying to justify and excuse it.

You don't see the authors of nginx angrily complaining at you every time you comment on a post about their httpd. (Which this thread was about originally, after all)

Re:NGINX Proxy Manager by SirGiggles on Monday May 23, 2022 @07:12PM (#31486008)
Just a quick query from someone who has beginner level experience in NGINX and Caddy. Doesn't this PR [1] for Traefik imply that trailing dots for FQDNs are fixed?

[1] https://github.com/traefik/traefik/pull/4763

Re:NGINX Proxy Manager by mholt on Monday May 23, 2022 @07:37PM (#31486190)
You can match hostnames with trailing dots in Caddy, too (and have been able to for years).
Re:NGINX Proxy Manager by SirGiggles on Monday May 23, 2022 @07:50PM (#31486281)
Just gonna be honest and just flat out state that I'm kind of lost on what's going on.

What is kuschku arguing against in ELI5 terms?

Re:NGINX Proxy Manager by kuschku on Tuesday May 24, 2022 @05:21AM (#31489788)
That it’s neither supported by default, nor mentioned in the documentation. Which leads to people misconfiguring their webservers, e.g., https://caddyserver.com./ vs https://httpd.apache.org./
Re:NGINX Proxy Manager by Whitestrake on Wednesday May 25, 2022 @10:36PM (#31513663)
It is supported by default. Out of the box you can configure it this way.

It is not _configured_ by default. There is an important distinction.

It's not mentioned in documentation because the documentation [1] does not provide an _exhaustive_ list of the kinds of addresses that Caddy can be configured to serve.

1. https://caddyserver.com/docs/caddyfile/concepts#addresses

Re:NGINX Proxy Manager by francislavoie on Monday May 23, 2022 @08:22PM (#31486536)
That it doesn't work implicitly in Caddy, without explicitly configuring Caddy with trailing dots.
Re:NGINX Proxy Manager by nousermane on Monday May 23, 2022 @01:20PM (#31481927)
Hey, at least caddy does case-insensetive hostname match, so you don't need to repeat the domain 2^12 times </s>

Seriously though - that's a pretty bizarre bug, absent from both nginx and apache httpd. And that attitude in sibling comment doesn't help either.

Re:NGINX Proxy Manager by kuschku on Monday May 23, 2022 @01:58PM (#31482578)
It’s not just the sibling comment that has this attitude, it’s also mholt himself displaying the same attitude. This hostile opinionated approach is part of what has kept me from using Caddy for the past few years (I went back to nginx at first, and once I started using k8s I also chose nginx as ingress controller there).

:/

Re:NGINX Proxy Manager by nyolfen on Tuesday May 24, 2022 @05:03PM (#31497515)
i have to say it is pretty weird to persistently complain about software you haven't used for years lol. i have also never used a trailing dot in a domain in 20+ years.
Re:NGINX Proxy Manager by kuschku on Friday May 27, 2022 @05:28AM (#31527606)
1. Just because I’m not running servers using caddy doesn’t mean I’m not affected by this bug, because some of my clients intentionally always postfix addresses they access with a dot to avoid internal DNS resolution.

2. I’d love to use caddy. I’m especially interested in using it for my status page, as that needs to be hosted outside my normal cluster. Ideally it should be an absolutely minimal setup (so nothing except caddy + status page, with status monitors on other servers reporting back to the status page). This would be the perfect use case for caddy, but right now I’m using an overcomplicated nginx setup because I don’t feel like I can trust caddy.