From da9f6d8c9fc68ed31898e2f9ac29eedee79b0b18 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 11 May 2024 17:04:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwebdav=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 1 + src/utils/file-config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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() {