-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body size upload limits with HTTPS #1147
Comments
Hi @timothyallan, I'm about to set Caddy up and I'm curious why Supervisor is being used if you're running Caddy in a Docker container? |
Oh, that's because I've got caddy and php7 running in the same container, plus a startup script that needs to do some housekeeping while they're all starting up. |
Okay, after much more mucking around, this only happens on HTTPS connections. With HTTP I can upload any file size to my hearts content. I've got it on a Digital Ocean droplet currently, with a valid HTTPS cert from the Commenting out the HTTPS code, and using the following 'fixes' the mysterious hanging issue.
|
Still trying to get this going. HTTP works great, as soon as HTTPS is enabled, it dies on large file uploads. Here's a report from Charles Proxy, do any of the settings ring an alarm bell?
|
So, it would seem that while using the Edit: aaaand disregard, lots of large uploads still kill caddy with SSL enabled. Sigh. |
Did you figure out the issue? |
Nope, nobody else seemed to be having that issue, and I've blown too much time trying to get it going, so I'll just use nginx for now. |
@timothyallan Try upgrading to 0.9.5 and see if that helps. We fixed some weird issues. (Remember to disable or increase the default timeouts!) |
I've got a production site running Laravel 5.3 which I'm trialling Caddy with on a staging server. There's a main image upload feature, where people can upload images of various sizes: 500Kb-75MB or so. This works great with NGINX, but is pulling funnies with Caddy.
Files < 400Kb or so upload just fine through Caddy, however, if I throw something > 1MB at it, Caddy just hangs. No errors reported that I can find. Caddy gets the SSL cert, serves all my 'regular' files just fine, but conks out on large uploads.
I'm using the stock download with no plugins.
PhpInfo is the same as the working live site, and reports:
so I'm pretty sure it's not a PHP issue. Any suggestions on how to fix the silent hanging?
1. What version of Caddy are you running (
caddy -version
)?.93
2. What are you trying to do?
Upload largish image files
3. What is your entire Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
via Supervisor in a Docker container:
5. What did you expect to see?
Files uploaded!
6. What did you see instead (give full error messages and/or log)?
I've got Charles Proxy monitoring the whole thing, and it just sits there waiting to hear back from Caddy. Caddy Log is normal
7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?
Upload some large jpgs??
The text was updated successfully, but these errors were encountered: