From 4b13e30a4d5567926a0e64cec5b1779c61279916 Mon Sep 17 00:00:00 2001 From: newrecha <165303543+newrecha@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:44:41 +0800 Subject: [PATCH] Add files via upload --- cat/README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 cat/README.md diff --git a/cat/README.md b/cat/README.md new file mode 100644 index 0000000..5dee681 --- /dev/null +++ b/cat/README.md @@ -0,0 +1,44 @@ +## nginx配置 dav + + +参考文档:https://forevertime.site/nginx-setup-webdav-for-zotero-sync/ + +## 自己配置 + +```bash +cd /opt/nginx/html +git clone https://github.com/qist/tvbox.git + +# 定时任务 + +crontab -e + +10 */1 * * * cd /opt/nginx/html/tvbox && git pull + +#每个小时地10分钟执行一次 +``` + +```nginx + location /dav { + lua_need_request_body off; + alias /opt/nginx/html/tvbox; + autoindex on; + dav_methods PUT MKCOL COPY MOVE; + dav_ext_methods PROPFIND OPTIONS; + create_full_put_path on; + dav_access user:rw group:r all:r; + auth_basic "Authorized Users Only"; + auth_basic_user_file /etc/nginx/.credentials.list; + } +``` + +#### 新源地址 + +```text +#V1.1.3版本以上 + +https://你的账号:你的密码@你的域名/dav/cat/dist/index.js.md5 + +#V1.1.2版本以下 +https://你的账号:你的密码@你的域名/dav/cat/tjs/open_config.json +``` \ No newline at end of file