| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- global
- log stdout format raw local0 info
- maxconn 4096
- user haproxy
- group haproxy
- daemon
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- timeout connect 5000
- timeout client 50000
- timeout server 50000
- option redispatch
- retries 3
- frontend http_front
- bind *:80
- mode http
-
- # 默认后端
- default_backend ankr_rpc
- backend ankr_rpc
- mode http
- balance roundrobin
-
- # 不添加 X-Forwarded-For 头,保持请求 IP 为服务器 IP
- # option forwardfor
-
- # 设置请求头
- http-request set-header Host rpc.ankr.com
-
- # 定义服务器 - 直接使用完整的 Ankr RPC 端点
- server ankr_server rpc.ankr.com:443 ssl verify none
-
- # 重写请求路径 - 添加 Ankr RPC 的特定路径前缀
- http-request set-path /solana/acadeb3212fbce5fa684b9e64410bdea04b416e32cc3b9a371d4073ecf30ebbb
-
- # 日志记录
- option httplog
- log global
|