Last active
October 29, 2018 11:15
-
-
Save VictoriaRaymond/78963c13e5b40d3470fd52bbeba1ca29 to your computer and use it in GitHub Desktop.
Benchmark test for reverse proxy
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
[common] | |
server_addr = <server_ip> | |
server_port = 7000 | |
[web] | |
type = http | |
local_port = 80 | |
custom_domains = www.v2ray.com |
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
[common] | |
bind_port = 7000 | |
vhost_http_port = 80 |
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
{ | |
"log": { | |
"loglevel": "warning" | |
}, | |
"policy": { | |
"levels": { | |
"0": { | |
"uplinkOnly": 0, | |
"downlinkOnly": 0 | |
} | |
} | |
}, | |
"inbound": { | |
"port": 1024, | |
"protocol": "dokodemo-door", | |
"settings": { | |
"address": "v2ray.com", | |
"port": 1024, | |
"network": "tcp" | |
} | |
}, | |
"outbound": { | |
"protocol": "freedom", | |
"settings": { | |
"redirect": "127.0.0.1:80" | |
} | |
}, | |
"outboundDetour": [ | |
{ | |
"protocol": "vmess", | |
"settings": { | |
"vnext": [ | |
{ | |
"address": "<server_ip>", | |
"port": 1024, | |
"users": [ | |
{ | |
"id": "27848739-7e62-4138-9fd3-098a63964b6b", | |
"alterId": 16, | |
"security": "none", | |
"level": 0 | |
} | |
] | |
} | |
] | |
}, | |
"tag": "interconn" | |
} | |
], | |
"reverse": { | |
"bridges": [{ | |
"tag": "bridge", | |
"domain": "test.v2ray.com" | |
}] | |
}, | |
"routing": { | |
"strategy": "rules", | |
"settings": { | |
"rules": [ | |
{ | |
"type": "field", | |
"inboundTag": ["bridge"], | |
"domain": ["full:test.v2ray.com"], | |
"outboundTag": "interconn" | |
} | |
] | |
} | |
} | |
} |
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
{ | |
"log": { | |
"loglevel": "warning" | |
}, | |
"policy": { | |
"levels": { | |
"0": { | |
"uplinkOnly": 0, | |
"downlinkOnly": 0 | |
} | |
} | |
}, | |
"inbound": { | |
"tag": "external", | |
"port": 80, | |
"protocol": "dokodemo-door", | |
"settings": { | |
"address": "127.0.0.1", | |
"port": 80, | |
"network": "tcp" | |
} | |
}, | |
"inboundDetour": [{ | |
"port": 1024, | |
"tag": "interconn", | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "27848739-7e62-4138-9fd3-098a63964b6b", | |
"level": 0, | |
"alterId": 16, | |
"email": "love@v2ray.com" | |
} | |
] | |
} | |
}], | |
"outbound": { | |
"protocol": "blackhole", | |
"settings": {} | |
}, | |
"reverse": { | |
"portals": [{ | |
"tag": "portal", | |
"domain": "test.v2ray.com" | |
}] | |
}, | |
"routing": { | |
"strategy": "rules", | |
"settings": { | |
"rules": [ | |
{ | |
"type": "field", | |
"inboundTag": ["external"], | |
"outboundTag": "portal" | |
}, | |
{ | |
"type": "field", | |
"inboundTag": ["interconn"], | |
"outboundTag": "portal" | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment