XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Caddy Community - Latest posts

Latest posts

"writing: deadline exceeded" and "writing: i/o timeout" errors from streaming video server via reverse proxy

FWIW, this is what Gemini told me in a debugging session: You have to set write_idle -1s because Caddy v2.11 introduced a default 1-minute (1m) write_idle timeout to protect servers from slow-reading clients (Slowloris-style attacks), and HTML5 <video> players inherently behave like a “stalled” client when buffering large files. Why Caddy’s Default 1m write_idle Breaks Video Streaming Browsers download in bursts, then stop reading. When you play a direct mp4 stream in Firefox, the browser…

"writing: deadline exceeded" and "writing: i/o timeout" errors from streaming video server via reverse proxy

1. The problem I’m having: I am occasionally getting “writing: deadline exceeded” or “writing: i/o timeout” errors using reverse proxy to a video streaming server. 2. Error messages and/or full log output: { "level": "warn", "ts": 1795026441.294514, "logger": "http.handlers.reverse_proxy", "msg": "aborting with incomplete response", ... "error": "writing: deadline exceeded" That is for HTTP/3. For HTTP/2, I get: "error":"writing: i/o timeout" This happens after a few minutes of streaming an mp4…

Yet another Caddyboard I suppose (Corium)

Yeah pretty much. The CF integration is mainly for the two things you mentioned [automatically purging cached files (…when deleted from Corium’s interface, or otherwise triggered) and syncing Corium’s internal IP blacklist with Cloudflare’s edge], but also for creating subdomains and DNS entries when using Corium to expose services via your tunnel. All the security features, like automatic blocking of suspicious probes, rate limiting, etc., are independent of Cloudflare. Corium enforces them…

Yet another Caddyboard I suppose (Corium)

Good to know. I’d assume the Cloudflare-specific bits — DNS records, cache purges and edge IP blocking — only come into play when you’re actually behind Cloudflare, so on a plain port-forward setup you’d be relying on Caddy’s own config and local log parsing instead. Is that roughly how it behaves, or do those integrations degrade gracefully rather than erroring out when no tunnel or API token is configured?

Reverse proxy 504 gateway timeout and response buffering on slow upstream queries

Worth checking whether the 30s boundary comes from the app itself or something in front of Caddy; a direct request to localhost:8080 will separate that. If only the proxied path fails, the directive you may still be missing is response_header_timeout, since read_timeout covers reading the response body, not waiting for headers. If your app only sends headers after the 15–45s work finishes, set response_header_timeout above that and confirm with debug logs. For SSE, flush_interval -1 is correct;…

Snippets just will not work on my caddyfile

Snippets are defined with parentheses but invoked with import. Inside a site block, (standard_headers) is parsed as a directive, which is why validation reports it as unrecognized. Change each usage to import standard_headers, import hsts, import json_log, etc. Definitions stay at the top level as you have them. Note that import can also take multiple snippets on one line if you prefer, e.g. import standard_headers hsts json_log.

Snippets just will not work on my caddyfile

1. The problem I’m having: Caddy snippets do not work. They are not recognized at all and `caddy validate` fails. I’ve tried even with a temporary test file and got the same result. 2. Error messages and/or full log output: Caddyfile: { email test@example.com } (standard_headers) { header { X-Content-Type-Options "nosniff" -Server } } example.com { (standard_headers) reverse_proxy 127.0.0.1:8080 } 2026/11/17 09:50:50.034 INFO using config from file {"file": "/tmp/test.caddyfile"} 2026/11/17…

Configuring Caddy v2 Reverse Proxy on Ubuntu 22.04 VPS Infrastructure

MTU is unlikely to be the cause of an HTTP-01 timeout; that usually points to port 80 not reaching Caddy. Caddy listens on all interfaces by default, so no special bind is normally needed. Check that DNS points only to the VPS public IPv4 and remove stale AAAA records, that the provider’s edge firewall/NAT forwards TCP 80 and 443 to this VPS, and that UFW allows them. Also confirm nothing else is bound to port 80 and test locally against the loopback address and from outside. If you use a bind…

Using DynDNS domain instead of IP

The CNAME is fine for DNS, but it only changes how the name resolves; Let’s Encrypt still has to reach the challenge over plain HTTP on port 80. The “no application protocol” TLS error suggests that request is hitting something that speaks TLS on port 80, or following a redirect to a TLS listener that does not offer HTTP ALPN. Check from outside your LAN that port 80 is forwarded to the Caddy container, not the router UI or another service, and make sure only one Caddy is bound to port 80.…

Intermittent connection resets on config reloads

We see the same thing on Caddy 2.11.4 (and 2.8.4), and measured it, in case the numbers help. Setup: Caddy in Docker with host networking, reverse_proxy to a local upstream, and a caddy reload (same config, one upstream address changed) while clients are sending requests. What we measured: Clients that connect and send the request at once (curl): 0 of 5,160 requests failed over 40 reloads. Clients that connect first, then send the request 50 ms later: 25 of 2,741 failed over 20 reloads. Every…

Anyone here moved from an AI app builder to Caddy for their own setup?

I’m in New Hampshire and I’ve been poking at AI app builders for a small side project, but I keep coming back to the idea of just serving something myself with Caddy since I already have a cheap VPS sitting idle. The part I’m unsure about is whether it actually makes sense for someone who isn’t a sysadmin by trade. My biggest concern is TLS and reverse proxy config when the app is still changing shape every week, and whether I’d be trading one kind of lock-in for another. I’ve read a bit online…

Server response header of cloudflare

That’s a good point. I’d also compare the response headers from a direct request to the origin with those from the public domain. This helps narrow down whether the Server header is being added by Caddy, the application, or an upstream proxy. If the header appears only on external requests, I’d investigate the router, tunnel, or hosting layer first.

Caddy reload in Docker?

BreezeDelegate is right about the loopback issue. Also check that the upstream app listens on all interfaces inside its container, not only localhost; it can still fail even when Caddy uses the correct Docker service name and internal port. Keep both services on the same compose network, then reload with the compose exec command that worked.

In the documentation of `file_server.hide`, what exactly is the "globular match" syntax?

jamesevans: Whether a dot-directory in the middle of a path is covered depends on whether the version matches full relative paths or each component, so test {root}/.git/config on 2.11.7. This sentence is confusing. Are you saying that in 2.11.7, file_server { hide `.?*` } will not hide paths like .../.git/config, but in some other versions of Caddy, it will? If so, when did this change and why?

Map outputs not getting converted to numbers? (complex redir/reject/rewrite job)

You’re hitting the string/number boundary: map outputs are placeholders, so {map_status} arrives as a string, while redir and error expect an integer status. Since the status set is small, avoid passing {map_status} directly. Match the string form first (e.g. {map_status} in ["301","302","307","308"] or {map_status} == "404") and then call redir {map_location} 308 or error 404 with literal numeric codes. That sidesteps type conversion in directive arguments. Your expression matcher shorthand…

In the documentation of `file_server.hide`, what exactly is the "globular match" syntax?

hide follows Go’s standard glob syntax, not gitignore or shell globbing. So * and ? match within one path segment, character classes use [^...] for negation rather than [!...], and there is no ** unless your build explicitly supports it. Your #*# pattern should work for Emacs auto-save names in that segment. .[!.] is not valid Go glob syntax; use .[^.] and .?*. Whether a dot-directory in the middle of a path is covered depends on whether the version matches full relative paths or each…

Using DynDNS domain instead of IP

Hi Carsten, thank you for the breakdown! I hoped the VPN endpoint would be replacing my router’s public IP address. I had tried inputting the subdomain.tplinkdns.com as an A record but it didn’t let me, it tells me it’s not a valid IPv4. I posted about this on TP-Link’s forums and I got an AI written reply that says to use CNAME instead of an A record. Setting it up as a CNAME works but trying to run Caddy through the docker image gives me the same error, sometimes it gives me a different one…

Cadditor — a minimal web editor for Caddyfile

Yes, exactly. On a verification failure, Cadditor shows Caddy’s output directly in the UI and stops there. The currently running configuration and the saved /etc/caddy/Caddyfile remain unchanged. The editor keeps the formatted version in place, and it also highlights changes compared to the currently applied configuration, so it is usually fairly easy to spot what changed and track down the problem before trying again. The backend is deliberately conservative about applying changes. It first…

Server response header of cloudflare

If you don’t use Cloudflare at all, then the header is probably coming from somewhere between the visitor and Caddy rather than from Caddy itself. One thing worth checking: your Windows 10 machine is running Caddy directly, so is anything else in front of it, like a hosting provider, tunnel service, or router that rewrites headers? A quick test is to request the origin directly, bypassing any proxy, and compare the raw headers with what a normal client sees. If the header only appears…

Using DynDNS domain instead of IP

Hi, I have something rather similar with my immich home server. I also have TP-Link router. Instead of dyndns I use tplinkdns in the router, but I suppose it is very similar. I have my subdomain A record pointing to my subdomain.tplinkdns.com so it should always work with my dynamic public IP whenever it changes (it rarely does change in my case). In addition to that, in the TP-link router I have set up port forwarding of ports 443 and 80 to the Caddy server in my LAN. I then use the very…

Cadditor — a minimal web editor for Caddyfile

The workflow gap you describe—SSH, edit, format, verify, reload—is the real friction for small homelab tweaks, so keeping the Caddyfile as source of truth rather than generating another format makes sense. The decision to avoid Docker and Node by serving the frontend through Caddy with small CGI scripts behind fcgiwrap fits an Alpine LXC well. I’m curious how you handle verification failures: does the editor keep the previous config active and surface Caddy’s output, or just block the reload?…

Using DynDNS domain instead of IP

1. The problem I’m having: I’m trying to set up my own NextCloud AIO on my home server and using Caddy as reverse proxy. I have the DynDNS domain name from my router (tp-link). I have Wireguard VPN set up with my home server as client and the router is my VPN server. I have my own domain and would like to use a subdomain (like nextcloud.mydomain.com) as I already have another server with different IP pointing to the main base domain. I’ve opened the two ports Caddy’s documentation say to…