Giter Site home page Giter Site logo

Comments (5)

117503445 avatar 117503445 commented on August 29, 2024

我也安装了 NMM 文件浏览器,进行了你的操作,我这里没有问题.你检查一下这几个点

比如说,电脑的ip是 192.168.1.2,把 D:/mydir 挂载在了 /public 下面

此时,你在 NMM 中输入的 WebDAV 路径 应该是 http://192.168.1.2/public 而不是 http://192.168.1.2

在浏览器中打开 WebDAV 服务端口,是否能进行正常的文件增删改查

目测 Nginx 不会引入问题, 你可以尝试不使用 HTTPS, NMM 直接使用 HTTP 连接有没有问题.

from gowebdav.

iso-lib avatar iso-lib commented on August 29, 2024

我也安装了 NMM 文件浏览器,进行了你的操作,我这里没有问题.你检查一下这几个点

比如说,电脑的ip是 192.168.1.2,把 D:/mydir 挂载在了 /public 下面

此时,你在 NMM 中输入的 WebDAV 路径 应该是 http://192.168.1.2/public 而不是 http://192.168.1.2

在浏览器中打开 WebDAV 服务端口,是否能进行正常的文件增删改查

目测 Nginx 不会引入问题, 你可以尝试不使用 HTTPS, NMM 直接使用 HTTP 连接有没有问题.

我是在甲骨文vps上安装的docker
docker run -itd
--name go_webdav
-v /media/tr/complete:/root/dir1
-e dav="/webdav,/root/dir1,dede,dede1979,true"
-p 37717:80
--restart=always
117503445/go_webdav:latest

nginx配置是
server {
listen 443 ssl;
server_name dj.xxxxx.xyz;
ssl_certificate /ssl/1_dj.xxxxx.xyz_bundle.crt;
ssl_certificate_key /ssl/2_dj.xxxxx.xyz.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

#charset koi8 - r;
#access_log logs / host.access.log main;

location / {
proxy_pass http://127.0.0.1:37717;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect http://$host https://$host:$server_port;
}
}

nmm挂载url就是https://dj.xxxxxx.xyz/webdav
应该没啥问题啊.
访问看电影,下载是没问题,,就是不能增删改.

from gowebdav.

117503445 avatar 117503445 commented on August 29, 2024

这不是 bug,这是 feature ....

第 5 个参数 true 的意思就是 readonly = true, 你改成 false 就能支持增删改了

from gowebdav.

iso-lib avatar iso-lib commented on August 29, 2024

这不是 bug,这是 feature ....

第 5 个参数 true 的意思就是 readonly = true, 你改成 false 就能支持增删改了

破案了,,谢谢大佬,,没仔细看文档,,其实文档写得那么清楚
轮子很好用.

from gowebdav.

117503445 avatar 117503445 commented on August 29, 2024

帮到忙的话, 给个 star 呗 :)

from gowebdav.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.