找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 12108|回复: 16

[N1盒子] 感觉samba慢的可以试试webdav

[复制链接]
本帖最后由 一个大草包 于 2019-2-17 18:15 编辑

安装caddy
  1. curl https://getcaddy.com | bash -s personal http.webdav
复制代码


https://caddyserver.com/download 这是caddy官网,需要其他功能自己去定制

配置caddy
  1. nano /etc/Caddyfile
复制代码

内容如下

  1. :80 {
  2. webdav / {
  3.       scope /var/www/html
  4. allow /
  5. }
  6. }
复制代码


创建电影目录软连接
  1. mkdir -p /var/www/html
  2. ln -s /nas/bt/downloads /var/www/html/鞋柜里的电影
复制代码


创建caddy服务
  1. curl -s https://raw.githubusercontent.com/GEM7/My_scripts/master/caddy/caddy.service -o /etc/systemd/system/caddy.service
复制代码


开机启动服务
  1. systemctl enable caddy
复制代码


现在启动服务
  1. systemctl start caddy
复制代码


现在手机或者电视里kodi去添加webdav,还可以外网访问,电脑文件管理器也可以直接访问。

我的恩山、我的无线 The best wifi forum is right here.
好用吗~~~~~~~~~~~~~~~~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

webdav比samba好用,可以外网访问
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

webdav 只会更慢, 好处是外网可以访问
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Failed to set capabilities on file `/usr/local/bin/caddy' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
我安装caddy提示这个错误

点评

caddy是干啥的?这个帖子标题不是写的webdav吗。。。怎么 要安装caddy  详情 回复 发表于 2022-3-5 15:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

对了,我用的是debian
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
samba也可以外网使用,von,你懂的

点评

请问呢samba如何外网访问,我在路由器里搭建了s乳,有公网,可以访问后台,就是不知道再怎么外网进入samba  详情 回复 发表于 2020-10-30 14:11
不如webdav方便  详情 回复 发表于 2019-2-27 08:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

manbuze126 发表于 2019-2-26 22:26
samba也可以外网使用,von,你懂的

不如webdav方便
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

装好也启动了  映射了80端口  外网没有打开啊  那个配置文件的80是端口的意思吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

如何给这个添加用户名和密码  现在外网直接可以访问  不安全

点评

caddy是干啥的?这个帖子标题不是写的webdav吗。。。怎么 要安装caddy  详情 回复 发表于 2022-3-5 15:27
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

账户密码要这么创建和修改或者删除?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

manbuze126 发表于 2019-2-26 22:26
samba也可以外网使用,von,你懂的

请问呢samba如何外网访问,我在路由器里搭建了s乳,有公网,可以访问后台,就是不知道再怎么外网进入samba

点评

用v屁n,连上之后用es文件浏览器  详情 回复 发表于 2020-11-3 20:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

ysjhxh 发表于 2020-10-30 14:11
请问呢samba如何外网访问,我在路由器里搭建了s乳,有公网,可以访问后台,就是不知道再怎么外网进入samb ...

用v屁n,连上之后用es文件浏览器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wwwlywj 发表于 2019-2-26 16:30
Failed to set capabilities on file `/usr/local/bin/caddy' (Operation not supported)
The value of th ...

caddy是干啥的?这个帖子标题不是写的webdav吗。。。怎么 要安装caddy
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

tvrohd 发表于 2019-3-20 23:20
如何给这个添加用户名和密码  现在外网直接可以访问  不安全

caddy是干啥的?这个帖子标题不是写的webdav吗。。。怎么 要安装caddy
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 11:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表