Merge pull request #1 from KiriKira/master

back
pull/1/head
q158073378252010 7 years ago committed by GitHub
commit 7271479c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,27 +16,31 @@
"tag": "agentout", "tag": "agentout",
"protocol": "vmess", "protocol": "vmess",
"mux": { "mux": {
"enabled": true, "enabled": true
"concurrency": 8
}, },
"settings": { "settings": {
"vnext": [{ "vnext": [
"users": [{ {
"users": [
{
"alterId": 100, "alterId": 100,
"security": "aes-128-gcm", "security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}], }
],
"port": 443, "port": 443,
"address": "example.domain" "address": "example.domain"
}] }
]
} }
}, },
"log": { "log": {
"access": "", "access": "",
"loglevel": "debug", "loglevel": "info",
"error": "" "error": ""
}, },
"outboundDetour": [{ "outboundDetour": [
{
"tag": "direct", "tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
@ -62,13 +66,14 @@
"auth": "noauth" "auth": "noauth"
}, },
"protocol": "socks", "protocol": "socks",
"port": 10086, "port": 1080,
"listen": "0.0.0.0" "listen": "0.0.0.0"
}, },
"inboundDetour": null, "inboundDetour": null,
"routing": { "routing": {
"settings": { "settings": {
"rules": [{ "rules": [
{
"ip": [ "ip": [
"0.0.0.0/8", "0.0.0.0/8",
"10.0.0.0/8", "10.0.0.0/8",
@ -90,7 +95,8 @@
"type": "field", "type": "field",
"port": null, "port": null,
"outboundTag": "direct" "outboundTag": "direct"
}], }
],
"domainStrategy": "IPIfNonMatch" "domainStrategy": "IPIfNonMatch"
}, },
"strategy": "rules" "strategy": "rules"

@ -8,59 +8,60 @@
}, },
"log": { "log": {
"access": "/var/log/v2ray/access.log", "access": "/var/log/v2ray/access.log",
"loglevel": "info", "loglevel": "error",
"error": "/var/log/v2ray/error.log" "error": "/var/log/v2ray/error.log"
}, },
"outboundDetour": [{ "inboundDetour": null,
"tag": "blocked",
"protocol": "blackhole",
"settings": null
}],
"inbound": { "inbound": {
"streamSettings": { "streamSettings": {
"network": "kcp", "network": "ws",
"kcpSettings": { "kcpSettings": null,
"uplinkCapacity": 100, "wsSettings": {
"downlinkCapacity": 100, "headers": {
"readBufferSize": 2, "host": "example.domain"
"mtu": 1350,
"header": {
"type": "srtp",
"request": null,
"response": null
}, },
"tti": 50, "path": "",
"congestion": false, "connectionReuse": true
"writeBufferSize": 2
}, },
"wsSettings": null,
"tcpSettings": null, "tcpSettings": null,
"tlsSettings": { "tlsSettings": {
"certificates": [{ "certificates": [
{
"keyFile": "/path/to/example.domain.key", "keyFile": "/path/to/example.domain.key",
"certificateFile": "/path/to/example.domain/fullchain.cer" "certificateFile": "/path/to/example.domain/fullchain.cer"
}] }
]
}, },
"security": "tls" "security": "tls"
}, },
"listen": null,
"protocol": "vmess",
"port": 443,
"settings": { "settings": {
"ip": null, "ip": null,
"udp": true, "udp": true,
"clients": [{ "clients": [
{
"alterId": 100, "alterId": 100,
"security": "aes-128-gcm", "security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}], }
],
"auth": null "auth": null
}
}, },
"protocol": "vmess", "outboundDetour": [
"port": 443, {
"listen": null "tag": "blocked",
}, "protocol": "blackhole",
"inboundDetour": null, "settings": null
}
],
"routing": { "routing": {
"strategy": "rules",
"settings": { "settings": {
"rules": [{ "rules": [
{
"ip": [ "ip": [
"0.0.0.0/8", "0.0.0.0/8",
"10.0.0.0/8", "10.0.0.0/8",
@ -82,10 +83,10 @@
"type": "field", "type": "field",
"port": null, "port": null,
"outboundTag": "blocked" "outboundTag": "blocked"
}], }
],
"domainStrategy": null "domainStrategy": null
}, }
"strategy": "rules"
}, },
"dns": null "dns": null
} }

Loading…
Cancel
Save