I’m running Caddy 0.9.5 using it to proxy to a bunch of different servers. All works great except I can’t download larger files without a failure. I tried adding timeouts none to my Caddyfile after all the proxy statements but Caddy fails when I restart it. It looks like it’s treating “timeouts” as a domain that it’s supposed to be getting an SSL certificate for. I tried moving that line around but nothing works. What am I doing wrong here…?
Part of my file: myexample.mydomain.com {
proxy / 10.1.1.15 {
transparent
}
}
timeouts none
Oh fer…jeez, sorry - I thought I was working with 0.9.5, which is what I have on a little Debian VM that I’m using for production. The one I was working with on another machine is actually only 0.9.3. Doh…
So yeah, timeouts none works fine when put in the right place.
Be careful when using timeouts none, I had set that in my Caddyfile too for the same reason, but after a week or two Caddy stopped working correctly, serving some files, not others.
Turned out too many files were open at once, maybe something else is set wrong on my server (need to increase open file limit maybe), but I “fixed” the issue by setting a large timeout, like 24hours, since none of my users needs a connection open longer than this.