SA
This commit is contained in:
parent
232da84cf7
commit
6e083a3014
1 changed files with 3 additions and 20 deletions
|
|
@ -51,32 +51,15 @@
|
||||||
|
|
||||||
# Nextcloud AIO - Optimized for WebDAV and Folder Uploads
|
# Nextcloud AIO - Optimized for WebDAV and Folder Uploads
|
||||||
cloud.netgrimoire.com {
|
cloud.netgrimoire.com {
|
||||||
# Disable body limits for large uploads (Nextcloud AIO manages its own)
|
# No CrowdSec here for now to prevent 404s on rapid-fire WebDAV requests
|
||||||
request_body {
|
|
||||||
max_size -1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use 'copy_response_headers' to ensure WebDAV 'Move/Copy' headers
|
|
||||||
# aren't stripped by Caddy's default normalization.
|
|
||||||
reverse_proxy http://nextcloud-aio-apache:11000 {
|
reverse_proxy http://nextcloud-aio-apache:11000 {
|
||||||
# CRITICAL: Prevents Caddy from normalizing slashes/spaces in paths,
|
|
||||||
# which is the primary cause of 'Folder Not Found' errors in SabreDAV.
|
|
||||||
rewrite_upstream_request_header
|
|
||||||
|
|
||||||
header_up Host {host}
|
header_up Host {host}
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
header_up X-Forwarded-For {remote_host}
|
header_up X-Forwarded-For {remote_host}
|
||||||
|
header_up X-Forwarded-Proto {scheme}
|
||||||
# Hardcode to https so Nextcloud's internal logic
|
|
||||||
# doesn't break during the 302/redirect phase of a folder creation.
|
|
||||||
header_up X-Forwarded-Proto https
|
|
||||||
|
|
||||||
# Essential for WebDAV 'MOVE' and 'COPY' commands used in folder uploads
|
|
||||||
header_up Destination {http.request.header.Destination}
|
|
||||||
|
|
||||||
transport http {
|
transport http {
|
||||||
# Increased for large file assembly (merging chunks)
|
response_header_timeout 300s
|
||||||
response_header_timeout 600s
|
|
||||||
dial_timeout 30s
|
dial_timeout 30s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue