location/your_path{if($http_upgrade!="websocket"){return404;}proxy_redirectoff;proxy_passhttp://127.0.0.1:4463;proxy_http_version1.1;proxy_set_headerUpgrade$http_upgrade;proxy_set_headerConnection"upgrade";proxy_set_headerHost$host;# Show real IP in v2ray access.log
proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;}