-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
haproxy: add eth-jsonrpc and eth-jsonrpcws for needed chains (#374)
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# to be append to haproxy.cfg for needed chains | ||
|
||
frontend fe_eth | ||
bind :8004 | ||
mode http | ||
log global | ||
option httplog | ||
option dontlognull | ||
option forwardfor except 127.0.0.0/8 | ||
|
||
default_backend be_eth | ||
|
||
|
||
frontend fe_ethws | ||
bind :8005 | ||
mode http | ||
log global | ||
option httplog | ||
option dontlognull | ||
option forwardfor except 127.0.0.0/8 | ||
|
||
default_backend be_ethws | ||
|
||
|
||
backend be_eth | ||
mode http | ||
balance roundrobin | ||
option httpchk | ||
http-check connect proto h1 | ||
http-check send meth GET uri /healthcheck | ||
server-template st 3 tasks.${rpc_service_name}:8545 check port 80 inter 10s weight 1 resolvers ns init-addr none | ||
|
||
|
||
backend be_ethws | ||
mode http | ||
balance roundrobin | ||
option httpchk | ||
http-check connect proto h1 | ||
http-check send meth GET uri /healthcheck | ||
server-template st 3 tasks.${rpc_service_name}:8546 check port 80 inter 10s weight 1 resolvers ns init-addr none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters