diff --git a/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf b/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf index 5e51091..45d9a90 100644 --- a/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf +++ b/brain/operations/BS-SG-001/nginx-guanghubingshuo.conf @@ -172,4 +172,18 @@ server { proxy_cache off; proxy_read_timeout 300s; } + # === D140 新增:代码开发 IDE(code-server on :3920)=== + location /ide/ { + proxy_pass http://127.0.0.1:3920/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_buffering off; + proxy_cache off; + proxy_read_timeout 300s; + } }