diff --git a/nginx.conf b/nginx.conf index f644d3a..4bbfbe0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -116,6 +116,7 @@ http { proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-Host $the_host/file; proxy_set_header X-Forwarded-Proto $the_scheme; + proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; diff --git a/src/utils/file-config.js b/src/utils/file-config.js index d8d7652..68af632 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -9,7 +9,7 @@ export default { }, // webDAV的url webDAVUrl: function(username) { - return window.location.origin + `${this.baseUrl}/webDAV/${username}` + return window.location.origin + `/webDAV/${username}` }, // office api url officeApiUrl: function() {