Skip to content

Commit da9f6d8

Browse files
committed
fix: 修复webdav无法修改文件的问题 #86
1 parent cbe1f7c commit da9f6d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

nginx.conf

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ http {
116116
proxy_set_header X-Real-PORT $remote_port;
117117
proxy_set_header X-Forwarded-Host $the_host/file;
118118
proxy_set_header X-Forwarded-Proto $the_scheme;
119+
proxy_set_header X-Forwarded-Port $server_port;
119120
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
120121
proxy_set_header Host $http_host;
121122
proxy_set_header Scheme $scheme;

src/utils/file-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
},
1010
// webDAV的url
1111
webDAVUrl: function(username) {
12-
return window.location.origin + `${this.baseUrl}/webDAV/${username}`
12+
return window.location.origin + `/webDAV/${username}`
1313
},
1414
// office api url
1515
officeApiUrl: function() {

0 commit comments

Comments
 (0)