apisix
apisix copied to clipboard
help request: How to synchronize the header configuration of the nginx configuration file to apisix
Description
The following is a partial configuration of nginx server { listen 80; # Remove '#' in the next line to enable IPv6 # listen [::]:80; server_name sub.domain.com; location / { proxy_pass http://localhost:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; } } How do I change this parameter in the apisix configuration or when configuring route on the dashboard
Environment
- APISIX version (run
apisix version): - Operating system (run
uname -a): - OpenResty / Nginx version (run
openresty -Vornginx -V): - etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info): - APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Looks like you're using websocket,you can use enable_websocket parameter in route
ref:
- https://apisix.apache.org/docs/apisix/admin-api/#request-body-parameters
- https://apisix.apache.org/docs/apisix/tutorials/websocket-authentication/
If there is still a problem, please open it again.