easysync icon indicating copy to clipboard operation
easysync copied to clipboard

Support webdav server url with port

Open Zieng opened this issue 10 months ago • 4 comments

Describe the solution you'd like

I've a self hosted webdav server, which can not use port 443, so I need to use another port. When specity the url without port:

my_domain.com

the webdav cannot be connected, which is expected.

When specify the url with port:

my_domain.com:my_port

easysync will return error:

Error: Unable to parse TLS packet header

PS: the webdav is hosted by dufs, and I've verified the browser can access it.

Zieng avatar Mar 31 '25 15:03 Zieng

Hi, did you specify https://my_domain.com:my_port (with https prefix)?

phpbg avatar Mar 31 '25 20:03 phpbg

Yes, I've tried both http and https with port, and both of them cannot connect.

Zieng avatar Apr 01 '25 00:04 Zieng

I tried the foldersync and get the similar error, and in https://foldersync.io/docs/faq/webdav/ I found this:

Image

I use nginx proxy manager to add SSL support for the dufs service I'm hosting. Now I start to doubt if the SSL is added correctly.

Zieng avatar Apr 01 '25 00:04 Zieng

Hi, I think Error: Unable to parse TLS packet header means you are expecting TLS (ie. HTTPS) but you received plain text. Check within a web browser first.

Also, is your certificate self signed? Your did you use a well known authority, such as https://letsencrypt.org/ ?

If you use self signed certificate, read carefully the manual, and report back, you may experience troubles as described here: https://github.com/phpbg/easysync/issues/39

phpbg avatar Apr 08 '25 08:04 phpbg