Strip IETF resumable-upload headers for Seafile iOS app (LXC 125)
iOS Seafile Pro 4.0.2 negotiates resumable uploads via Upload-Draft-Interop-Version: 6, but Seafile-fileserver does not understand the protocol and never returns the expected interim response; the iOS client then cancels the HTTP/2 stream after ~60s and the upload (or library-create POST) appears to fail. Strip the negotiation headers so the client falls back to normal multipart upload, and bump upstream timeouts for large transfers.
This commit is contained in:
14
Caddyfile
14
Caddyfile
@@ -181,7 +181,6 @@ files.hubris.network {
|
|||||||
dns ionos {env.IONOS_AUTH_API_TOKEN}
|
dns ionos {env.IONOS_AUTH_API_TOKEN}
|
||||||
}
|
}
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
# Seafile desktop client uploads large files; bump the body cap.
|
|
||||||
request_body {
|
request_body {
|
||||||
max_size 10GB
|
max_size 10GB
|
||||||
}
|
}
|
||||||
@@ -189,5 +188,18 @@ files.hubris.network {
|
|||||||
header_up X-Forwarded-Proto https
|
header_up X-Forwarded-Proto https
|
||||||
header_up X-Forwarded-Host {host}
|
header_up X-Forwarded-Host {host}
|
||||||
header_up Host {host}
|
header_up Host {host}
|
||||||
|
# Seafile iOS Pro app (>=4.0) speaks the IETF Resumable Uploads draft;
|
||||||
|
# the bundled seafile-fileserver does not. Strip the negotiation headers
|
||||||
|
# so the client falls back to a normal multipart upload.
|
||||||
|
header_up -Upload-Draft-Interop-Version
|
||||||
|
header_up -Upload-Complete
|
||||||
|
header_up -Upload-Offset
|
||||||
|
header_up -Upload-Length
|
||||||
|
transport http {
|
||||||
|
dial_timeout 30s
|
||||||
|
read_timeout 1h
|
||||||
|
write_timeout 1h
|
||||||
|
}
|
||||||
|
flush_interval -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user