如何使用Joplin搭建私有笔记软件
为什么使用Joplin自建笔记软件
使用过很多款笔记软件,有道云笔记之类的,但是万一哪天服务关闭或者收费,搬家是件很痛苦的事情。所以我们需要自建笔记软件,自己保存备份。
Joplin是跨全平台的笔记软件,可以实时备份到云盘服务,如onenote,也可以用VPS自建备份服务器
https://joplinapp.org/
实时备份
我用nginx搭建了WebDAV服务,作为Joplin的实时备份服务器,服务器上用git,定时push到私有的git服务。
下面是nginx的配置,可以参考
server {
root /var/www/dav;
index index.html index.htm index.nginx-debian.html;
server_name dav.example.com;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
auth_basic realm_name;
auth_basic_user_file /etc/nginx/.credentials.list;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw all:r;
client_body_temp_path /tmp/nginx-client-bodies;
client_max_body_size 0;
create_full_put_path on;
}
server {
if ($host = dav.example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name dav.example.com;
listen 80;
return 404; # managed by Certbot
}```
上一篇:
通过多线程提高代码的执行效率例子
下一篇:
Git操作(自用过程中总结的)
