Replies: 8 comments
-
|
I would be curious to have the full chain of transmitted headers. I had identified an issue with the WebDAV client on Windows, which refused authentication whenever the X-Forwarded-Proto header was present (possibly because it was not the correct scheme). That’s why, in the NGINX configuration shown in the documentation, I remove this header for the WebDAV route (https://sync-in.com/docs/setup-guide/proxy#nginx-configuration): map $request_uri $xfp {
# This header must be null on webdav URI
# It causes authentication failures with Microsoft-WebDAV-MiniRedir (Windows)
~^/webdav(?:/.*)? "";
default $scheme;
}What we need to determine is whether this is an implementation issue with certain WebDAV clients or something that is not properly handled by Sync-in. |
Beta Was this translation helpful? Give feedback.
-
|
I'm not familiar with NodeJS or Webdav specs. So I asked Claude.ai and it seems that Nautilus or Davfs2 are more strict about respecting Webdav RFC. Claude said webdav server MUST return HTTP header with "http" protocol, no matter what the server receives. |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried Nautilus or davfs2 against the Sync-in demo? If it works, that would mean |
Beta Was this translation helpful? Give feedback.
-
|
I did try with the demo, and it works fine indeed. |
Beta Was this translation helpful? Give feedback.
-
|
It should also work if you set |
Beta Was this translation helpful? Give feedback.
-
|
It does, yes. I don't understand anything of what it's all about, and I'm sorry for not using appropriate vocabulary (it's far from my area of expertise). |
Beta Was this translation helpful? Give feedback.
-
|
No problem, it's good to share your experience and configuration :) |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem (webdav are not working behind caddy as reverse proxy). Many tank for the solution, but since the problem is related to header, it's better to not transfer the header with the directive -header. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Thanks a lot, again, for this beautiful software.
I'm using Caddy and have struggled to have webdav work correctly with Caddy as Reverse Proxy.
The basic configuration is obviously:
It works for the web interface and the client. It also work with Joplin (which I use). But webdav does not work with clients like Nautilus or davfs2.
The solution is to force Caddy to return protocol header "http":
I don't know if it's related to Caddy or Sync-In. Caddy is supposed to send headers it receives. Could it be Sync-In not sending the appropriate header, simply relying on the protocol header it initially receives from the reverse proxy?
Anyway, with this simple configuration (one may add log directives, obviously), Sync-In seems to be fully working behind Caddy.
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions