Blockscout.com uses haproxy for all BlockScout hosted and external instances.
org
) designates the organization/type of the network, the second part (netname
) names the network.
For example:
https://blockscout.com/eth/mainnet
org=eth
, netname=mainnet
) https://blockscout.com/etc/mainnet
org=etc
, netname=mainnet
)https://blockscout.com/eth/kovan
org=eth
, netname=kovan
)org
for your blockscout instance’s urlacl
under the #Check for network type section in the cfg file.
!is_myorg
to the #default redirect section
!is_myorg
to every line in the #redirect for networks section
acl
with your netname
similar to existing ones
backend_mynet
and backend_mynet_ws
sections to the end of the file and provide dns names of your BlockScout instances.
For example:
backend mynet
:
acl is_...
reqirep ...
http-request set-header Host ...
server mynet_server...
- don’t forget to specify port 443 herebackend mynet_ws
:
http-request set-header Host...
http-request set-header Origin ...
don’t forget https
hereserver mynet_server...
- don’t forget port 443 here