|
本帖最后由 jingleeboy 于 2021-9-24 02:05 编辑
xray配置:
- {
- "log": {
- "loglevel": "warning"
- },
- "inbounds": [
- {
- "protocol": "dokodemo-door",
- "port": 1888,
- "settings": {
- "network": "tcp,udp",
- "followRedirect": true
- }
- }
- ],
- "outbounds": [
- {
- "tag": "socks",
- "protocol": "socks",
- "settings": {
- "servers": [
- {
- "address": "127.0.0.1",
- "port": 1088
- }
- ]
- }
- }
- ]
- }
复制代码
haproxy配置:
- global
- maxconn 32000
- ulimit-n 65535
- defaults
- mode tcp
- log global
- option dontlognull
- timeout connect 5000
- timeout client 50000
- timeout server 50000
- listen haproxy_stats
- bind *:8888
- mode http
- stats refresh 30s
- stats uri /haproxy
- stats realm Haproxy
- stats auth admin:admin
- stats admin if TRUE
- listen xray
- bind *:1088
- server server1 192.168.x.1:1088 check
- server server2 192.168.x.2:1088 check
复制代码
|
|