Adding in node_page to haproxy to reroute dashboard3 to the correct server. This is corrected in dashboard3 with consul.

This commit is contained in:
Samuel Clay 2021-05-05 12:06:41 -04:00
parent c3158a2ea2
commit 20b3d24d09

View file

@ -56,6 +56,7 @@ frontend public
use_backend node_socket3 if { path_beg /v3/socket.io/ }
use_backend node_favicon if { path_beg /rss_feeds/icon/ }
use_backend node_text if { path_beg /rss_feeds/original_text_fetcher }
use_backend node_page if { path_beg /original_page/ }
use_backend nginx if { path_beg /media/ }
use_backend nginx if { path_beg /static/ }
use_backend nginx if { path_beg /favicon }
@ -96,6 +97,12 @@ backend node_text
balance roundrobin
{{ node_text }}
backend node_page
http-check expect rstatus 200|503
# option httpchk GET /original_page/1?test=1
balance roundrobin
server search01 db_pages:3060 # check inter 2000ms
backend self
balance roundrobin
option httpchk GET /_nginxchk