apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.49k stars 2.52k forks source link

help request: How to synchronize the header configuration of the nginx configuration file to apisix #11487

Open SquirHong opened 3 months ago

SquirHong commented 3 months ago

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

ronething commented 2 months ago

Looks like you're using websocket,you can use enable_websocket parameter in route ref: