直接访问JumpServer的web端口是没有问题的,但是我使用反向代理到JumpServer的web端口时报错了,报错如下
官方反向代理配置:
https://docs.jumpserver.org/zh/v3/installation/proxy/#2-nginx
location / {
proxy_pass http://172.31.0.5:8180/;
proxy_http_version 1.1;
proxy_buffering off;
proxy_request_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
即可正常访问