webdav服务搭建 建站

zsxwz 23/08.24 10:19 496

https://github.com/hacdias/webdav/releases

 

有些软件可以使用webdav做同步,如果使用第三方网盘的webdav可能不太稳定,如果自己有服务器,自己搞一个webdav做同步也是不错的选择。

 

支持,Linux和Windows

下载编译好的程序,解压,去运行就好了。

mkdir webdav
cd webdav
#下载
wget https://github.com/hacdias/webdav/releases/download/v4.2.0/linux-amd64-webdav.tar.gz
#解压
tar -zxvf linux-amd64-webdav.tar.gz

#配置文件
nano config.yaml

配置文件:config.yaml

# Server related settings
address: 0.0.0.0
port: 23456 #运行端口可以改
auth: true
tls: false
cert: cert.pem
key: key.pem
prefix: /
debug: false

# Default user settings (will be merged)
scope: .
modify: true
rules: []

# CORS configuration
cors:
  enabled: true
  credentials: true
  allowed_headers:
    - Depth
  allowed_hosts:
    - http://localhost:8080
  allowed_methods:
    - GET
  exposed_headers:
    - Content-Length
    - Content-Range

users:
  - username: admin #用户名
    password: 123321  #密码
    scope: /root/webdav

 

运行:

./webdav --config /root/webdav/config.yaml

 

 


上一篇:用gpt写了一个简单的论坛rss推送电报频道脚本,没想到居然没有什么问题
下一篇:crisp客服对接电报bot
最新回复 (0)
    • 姿势论坛—姿势小王子
      2
返回
发新帖
友情链接
免责声明:本站部分资源来源于网络,如有侵权请发邮件(mail@zsxwz.com)告知我们,我们将会在24小时内处理。