V1.18.18 升级后 配置Nginx 仍出现 504 gateway time-out
Nginx配置:
server {
listen 8083;
listen [::]:8083;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
#-----------
keepalive_timeout 600;
fastcgi_connect_timeout 600;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
#----------
location /kettlepack {
#不改变请求头的信息
proxy_set_header Host $host;
#捕获客户端真实IP
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#代理地址
proxy_pass http://11.2.10.18:9089;
server_name_in_redirect on;
}
location /carte/ {
proxy_pass http://localhost:8881/;
}
location / {
root /opt/dataease/web/frontend/dist/;
index index.html;
}
location /app.html {
root /opt/dataease/web/mobile/dist/;
index index.html;
}
location /de-app/ {
alias /opt/dataease/web/mobile/dist/;
}
location /de-api/ {
proxy_pass http://localhost:8081/de-api/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
server_name_in_redirect on;
}
error_page 404 /404.html;
location = /404.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
报错信息: