From 7ea1f9496dd7ca10541ca5f4ec19a4ccb6005852 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 18 Jan 2025 15:31:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96nginx=E4=B8=AD?= =?UTF-8?q?=E7=9A=84excalidraw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf.no_office.template | 18 ++++++++++++++++++ nginx.conf.template | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/nginx.conf.no_office.template b/nginx.conf.no_office.template index bb77ece..f99ec8f 100644 --- a/nginx.conf.no_office.template +++ b/nginx.conf.no_office.template @@ -225,6 +225,24 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } + + location /excalidraw/app/ { + proxy_pass http://localhost:8082/excalidraw/app/; + 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//excalidraw/app; + 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; + proxy_set_header Scheme $scheme; + proxy_set_header Server-Protocol $server_protocol; + proxy_set_header Server-Name $server_name; + proxy_set_header Server-Addr $server_addr; + proxy_set_header Server-Port $server_port; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } } include servers/*; diff --git a/nginx.conf.template b/nginx.conf.template index 2c8c339..f7e3b9e 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -243,6 +243,24 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } + + location /excalidraw/app/ { + proxy_pass http://localhost:8082/excalidraw/app/; + 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//excalidraw/app; + 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; + proxy_set_header Scheme $scheme; + proxy_set_header Server-Protocol $server_protocol; + proxy_set_header Server-Name $server_name; + proxy_set_header Server-Addr $server_addr; + proxy_set_header Server-Port $server_port; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } } include servers/*;