laurent22 / joplin

Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
43.68k stars 4.71k forks source link

Joplin updated from 12.14.6 to 12.14.8 in IOS17.5 , Webdav sync failed :Network request faild #10437

Closed suntingbo closed 2 weeks ago

suntingbo commented 2 weeks ago

Operating system

iOS

Joplin version

12.14.8

Desktop version info

No response

Current behaviour

In IOS 17.5 , after updated Joplin to 12.14.8 , webdav cannot be used;but 12.14.6 works fine .

Expected behaviour

No response

Logs

cfab9f5de58c6c2240dd1881b6d5342

suntingbo commented 2 weeks ago

this is my webdav address , works fine before Joplin 12.14.6

image

wljince007 commented 2 weeks ago

The reason is: nsapptransportsecurity

I found a feasible method by compiling the dev version of 12.14.8.

Here is a flexible solution:

  1. In Joplin Setting, configure the WebDav Url address to http://api.joplincloud.local:12345
  2. api.joplincloud.local has been set to enable HTTP requests by Joplin IOS version.
  3. Add nginx forwarding before WebDav service, example configure:
    server {
    listen 12345;
    location / {
    proxy_set_header Host 101.35.198.14:51234;
    proxy_pass  http://101.35.198.14:51234;
    }
    }
  4. Change IOS Hosts, or use Stash proxys or other methods to transfer http://api.joplincloud.local:12345 lead to your nginx monitoring http://101.35.198.14:12345
suntingbo commented 2 weeks ago

It works, thanks a lot!

The reason is: nsapptransportsecurity

I found a feasible method by compiling the dev version of 12.14.8.

Here is a flexible solution:

  1. In Joplin Setting, configure the WebDav Url address to http://api.joplincloud.local:12345
  2. api.joplincloud.local has been set to enable HTTP requests by Joplin IOS version.
  3. Add nginx forwarding before WebDav service, example configure:
server {
  listen 12345;
  location / {
    proxy_set_header Host 101.35.198.14:51234;
    proxy_pass  http://101.35.198.14:51234;
  }
}
  1. Change IOS Hosts, or use Stach proxys or other methods to transfer http://api.joplincloud.local:54321 lead to your nginx monitoring http://101.35.198.14:12345