Nginx webdav for Joplin

WebDav is like a storage service, various applications can connect to it, Jopin supports webdav, you can build a webdav service by yourself, todo list widget, text storage synchronization widget, it is very convenient for small teams to use and easy to maintain

nginx webdav configuration

Go to the official website of nginx to download the source code. The compilation and installation is to add the ngx_http_dav_module module. For the specific process, you can search how nginx compiles the module, enter nginx -V, and check whether it is normal, as shown below:

[root@nginx-dav]# nginx -V
nginx version: nginx/1.20.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) 
configure arguments: --sbin-path=/opt/nginx --conf-path=/opt/nginx/nginx.conf --pid-path=/opt/nginx/nginx.pid --with-http_dav_module --add-module=/opt/nginx-dav-ext-module

nginx configuration, reference: http://nginx.org/en/docs/http/ngx_http_dav_module.html

[root@nginx-dav]# cat nginx.conf
user  nginx;
worker_processes  auto;
events {
    worker_connections  4096;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    access_log  /data/logs/nginx/access.log;
    error_log   /data/logs/nginx/erorr.log;
    sendfile        on;
    keepalive_timeout  65;
    gzip  on;

    server {
        listen       80;
        server_name  localhost;
        location / {
            autoindex             on;
            root                  /data/webdav;
            client_body_temp_path /data/client_temp;
            dav_methods PUT DELETE MKCOL COPY MOVE;
            dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;
            
            #auth
            auth_basic            realm_name;                             
            auth_basic_user_file  /opt/nginx/.passwords.list;

            client_max_body_size  0;
            create_full_put_path  on;
            dav_access            user:rw group:rw all:r;

        # filter
        #	limit_except GET {
        #		allow 192.168.1.3;
        #		deny  all;
        #	}
        }
    }
}

Jopiln configure webdav

Open Jopiln's Tools/Options/Synchronization, Fill in the webdav service information:

Synchronization target: WebDAV
WebDAV URL: http://your_nginx_webdav_server_ip_addres/
WebDAV username: username in nginx /opt/nginx/.passwords.list 
WebDAV password: password in nginx /opt/nginx/.passwords.list 
Synchronization interval: keep default or select one

In addition, there are many people who use webdav as a network disk

Lastmod: Monday, August 28, 2023

See Also:

Translations: