From 82d9d94313719e57213a450d778829b45e433bfe Mon Sep 17 00:00:00 2001 From: amass Date: Thu, 21 Nov 2024 00:05:44 +0800 Subject: [PATCH] deploy res. --- Server/conf/server.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Server/conf/server.conf b/Server/conf/server.conf index 89d3d0e..3783d6a 100644 --- a/Server/conf/server.conf +++ b/Server/conf/server.conf @@ -39,7 +39,17 @@ location ~ ^/api/v1/.*$ { proxy_pass http://local; } -location ~ ^/wt/.+$ { +location = /wt/app.js { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header x-wiz-real-ip $remote_addr; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; proxy_pass http://wt; }