C
I’d actually keep the config simpler here. Caddy already handles X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Host for you. You generally don’t need to override Host either, especially when proxying to a local HTTP service. Changing it to 127.0.0.1:8080 could even cause issues if your app expects the original domain. I’d start with just: example.com { reverse_proxy 127.0.0.1:8080 } Unless you’re seeing a specific issue, there’s probably no reason to adjust timeouts or buffering yet.
C
Ok then, quick workaround from the Go security team is to set GODEBUG=multipathtcp=0 for any Go 1.24+ applications. Disabling MPTCP at the kernel level is another option. Neither actually fixes the vulnerability in the kernel. I would also check your distros security advisories, for backported patches than relying only on the kernel version of the distro. Which distro and release are you running? openwall.com oss-security - Fwd: Protecting against CVE-2026-98432 when using Go programs
C
Environment OS: Linux (VPSTTT VPS host) Caddy Version: v2.7.6 Context In evaluating VPS and proxy deployment architecture on a VPSTTT VPS instance through technical knowledge sharing, we are utilizing Caddy as the front-end reverse proxy server to route incoming Web traffic to internal service endpoints. Formatted Caddyfile example.com { reverse_proxy 127.0.0.1:8080 { header_up Host {upstream_hostport} header_up X-Real-IP {remote_host} } } Expected Result Caddy automatically manages TLS…
C
Thanks a ton. Works as expected.
C
The linux distribution we are using have yet to publish a patched kernel…
C
BreezeDelegate: how does replay protection work when running multiple caddy instances ? Is the nonce state shared between them, or does each instance handle it separately? Just curious how that would behave behind a load balancer. Each instance handles it separately. Aegis remembers the nonce of each verified signature in memory, inside the Caddy process. A nonce is a random value the agent puts into one signature only. Behind a load balancer, a replay that lands on the instance that saw the…
C
Hey. Thank you! I think i end up with a solution similar to you. I’ve created a dedicated github repository that continuously builds caddy on demand, and returns the resulting binary as a release. Here is an example: GitHub Release Custom Caddy v2.11.7 · ParsaJR/my-awesome-caddy Custom Caddy build Then, i’ve written an script with Pyinfra, which deploys my custom caddy binary on my server. I thought i can somehow use the Download Caddy page, which lists all the modules that are available. But…
C
Disclosure: I’m part of the CDNCA project team, and this reply was written with AI assistance (reviewed by me). Good question — partial failures across a few boxes are exactly the pain we design around. Short answer: we do not leave a failed node quietly serving the old config. The control plane compiles site/cert/cache/WAF (etc.) config and pushes it; each node reports the version actually in effect. If a node fails to publish, it is disabled instead of continuing to take traffic with stale…
C
Thanks, updated the wiki and left a comment
C
Important addition for people using this: a previous version of this config template matched the certificate subject against null, which was correct until caddy v2.11.2. Since then, this must compare it to an empty string, otherwise the expression can never be true. See #7530 for more details.
C
Hey, just wondering, what happens if you push an update to several servers and one of them fails? Does it keep the old config ? I feel like that could be a pain to deal with if you’re managing quite a few servers.
C
Even if Caddy isn’t directly affected, it’s worth checking if an application behind it could be if it decompresses untrusted Brotli data. So I would still check the app’s runtime and dependencies, especially Node.JS or .NET services.
C
Hey, from what I’ve read this is a linux kernel issue rather than a caddy specific vulnerability. The Go security team says Go 1.24+ enables MPTCP listeners by default on linux. GODEBUG=multipathtcp=0is a possible temporay mitigation, but it doesn’t fix the underlying kernel bug. Their recommendation is to update to a patched host kernel. So, here’s their advisory: openwall.com oss-security - Fwd: Protecting against CVE-2026-98432 when using Go programs
C
Interesting project One question, how does replay protection work when running multiple caddy instances ? Is the nonce state shared between them, or does each instance handle it separately? Just curious how that would behave behind a load balancer.
C
I’ve pumped your trust level so you can make the change. Thank you, by the way!
C
Post is little old I know, if you still lf some help. Have you tried running the same request directly against localhost:8080 and then through Caddy? If both fail around 30 seconds, I’d look at the application first. If only the proxied request fails, Caddy’s debug logs from that request might help narrow it down.
C
The post got a little old but if you still need help. I’d probably move the build into CI and pin the Caddy and plugin versions. That way you can publish a versioned binary or Docker image and deploy the exact same artifact to each server. It’s also worth checking the resulting binary with caddy list-modules before releasing it.
C
Sorry for the 26 days delay I hope you find a solutoin already but if not. If you’re using the usual OpenVPN UDP port, I’d just forward it directly from your router to the VPN server. Caddy’s regular reverse_proxy handles HTTP traffic, so it won’t proxy OpenVPN that way. You can still keep Caddy on ports 80/443 for your websites.
C
I noticed you have two format directives in the same log block. Caddy expects just one. You can keep the filtering and use wrap console inside format filter to get readable timestamps. That should give you both without having to choose between them.
C
I only signed up just now (for exactly this change), so I unfortunately still seem to lack the required permissions.
C
@smilingfriends, I’ve deployed a fixed version of the site which should accept your module without necessary modifications. That said, I don’t generally recommend having latest Caddy in your go.mod because that forces builds to have that version as minimum, without any possible way to use lower version if they ever need to.
C
I think the 502s might be coming from the upstream addresses. Inside the Caddy container, 127.0.0.1 points to Caddy itself, not your other containers. If they’re on the same Docker network, try using their service names and internal ports instead. Otherwise, use an address Caddy can actually reach.
C
It’s a wiki. You can update it yourself.
C
My feedback concerns the following wiki entry: Example: mTLS with Basic Auth fallback Wiki This is a config created according to the post here that allows for basic auth to be used as a fallback when an mTLS client cert is not presented. # This matcher checks for the presence of an mTLS client cert (missing_mTLS_cert) { @missing_mTLS_cert { expression {tls_client_subject} == null } } (admin_user) { # user: test, pass: test test JDJhJDEwJGdtd01Gc0ttWUJFaVZE…
C
Title says it all. I know caddy is a go application, I read here (oss-security - Fwd: Protecting against CVE-2026-98432 when using Go programs) that go applications use mptcp by default for listening on TCP ports.
C
Context & Infrastructure Setup I am setting up a web application reverse proxy using Caddy on a Linux VPS instance provided by VPSTTT (Ubuntu 22.04 LTS, 2 vCPU, 4GB RAM). The objective is to leverage Caddy’s automatic HTTPS to terminate TLS and forward traffic to an internal web service listening on port 8080. Caddy Version v2.7.6 h1:w0N32vDRFZ9lwMc40L3P0+SgL2/S1m0/ Environment Host OS: Ubuntu 22.04 LTS (VPSTTT VPS) Kernel: 5.15.0-88-generic x86_64 Network: Direct static public IPv4, UFW…
C
Disclosure: I’m part of the CDNCA project team, and this post was written with AI assistance (reviewed by me). CDNCA — CDN nodes, plugin marketplace — one control plane to run your CDN platform. Marketplace features roll out by version. Why I’m sharing here: many of us use Caddy as a reverse proxy on a handful of edge boxes. Once you have many domains across several machines, keeping certificates, upstreams and cache rules consistent gets painful. CDNCA aims to manage that from a single control…
C
smilingfriends: Will the build server move to Go 1.27 any time soon? I’ve asked the colleague maintaining the build server to upgrade Go.
C
No luck. Downgraded to v2.11.4 which works for my module but still not claiming. “633ed75d-e0c3-4ddb-bd65-b2d2edc3f18c” EDIT: Claimed! Thanks Mohammed! v2.11.4 worked: GitHub - kauricre/aegis: Aegis is a Caddy module that checks Web Bot Auth signatures on incoming requests and tells the rest of the Caddy config the outcome of each check. · GitHub v0.1.1 is registered. The download now fails with “unable to fulfill download request” (IDs f7c50a45-ce91-466b-91ea-b446e1c59141,…