Initial SPLIT-HTTP support

This commit is contained in:
Samuel Huang
2024-08-25 15:12:03 +10:00
parent 651cff5d79
commit ecac780b4f
19 changed files with 336 additions and 30 deletions

13
nginx-ws.tpl Normal file
View File

@@ -0,0 +1,13 @@
location LOCATION {
if ($http_upgrade != "websocket") {
return 404;
}
proxy_redirect off;
proxy_pass http://HOST:PORT;
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;
}