Fail over to next node when and RSK backend is down
This commit is contained in:
parent
aaae90bc0d
commit
5765c08d6e
@ -26,12 +26,16 @@ server {
|
||||
return 204;
|
||||
}
|
||||
|
||||
proxy_pass http://_<%= @upstream_name %>;
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_next_upstream error timeout invalid_header http_500;
|
||||
proxy_connect_timeout 2;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://_<%= @upstream_name %>;
|
||||
}
|
||||
|
||||
ssl_certificate <%= @ssl_cert %>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user