apisix icon indicating copy to clipboard operation
apisix copied to clipboard

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

Open SquirHong opened this issue 1 year ago • 1 comments

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 -V or nginx -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):

SquirHong avatar Aug 07 '24 07:08 SquirHong

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/

ronething avatar Aug 12 '24 03:08 ronething

If there is still a problem, please open it again.

Baoyuantop avatar May 13 '25 03:05 Baoyuantop