From 1c8e77ad19fe9f3f3aaf2dd55f27fc8c702e9fc9 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 30 May 2024 15:31:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E5=B0=86drawio=E9=9B=86=E6=88=90?= =?UTF-8?q?=E5=88=B0jmalcloud=E9=95=9C=E5=83=8F=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index bf049cb..994f1b5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -178,12 +178,12 @@ http { proxy_set_header Connection $connection_upgrade; } - location /drawio/webapp/ { + location /draw { proxy_pass http://jmalcloud:8080/; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; - proxy_set_header X-Forwarded-Host $the_host/drawio/webapp; + proxy_set_header X-Forwarded-Host $the_host/draw; proxy_set_header X-Forwarded-Proto $the_scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; From ad4791de2154251e5615e1588d753aa102f61c98 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 30 May 2024 15:32:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E5=B0=86drawio=E9=9B=86=E6=88=90?= =?UTF-8?q?=E5=88=B0jmalcloud=E9=95=9C=E5=83=8F=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/office/Drawio.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/office/Drawio.vue b/src/components/office/Drawio.vue index 3717050..3b2234e 100644 --- a/src/components/office/Drawio.vue +++ b/src/components/office/Drawio.vue @@ -85,7 +85,7 @@ export default { let theme = 'kennedy' let title = this.file.name ? encodeURIComponent(this.file.name) : '' let query = `?title=${title}&chrome=${chrome}&lightbox=${lightbox}&ui=${theme}&lang=${language}&offline=0&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json` - this.url = $J.apiUrl(`../drawio/webapp/${query}`) + this.url = $J.apiUrl(`../draw${query}`) }, mounted() { window.addEventListener('message', this.handleMessage)