mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-09-17 20:54:35 +08:00
add http/2 config
This commit is contained in:
0
websocket+Caddy+TLS(use header)/Caddyfile
Normal file → Executable file
0
websocket+Caddy+TLS(use header)/Caddyfile
Normal file → Executable file
@@ -20,15 +20,19 @@
|
||||
"concurrency": 8
|
||||
},
|
||||
"settings": {
|
||||
"vnext": [{
|
||||
"users": [{
|
||||
"alterId": 100,
|
||||
"security": "aes-128-gcm",
|
||||
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
|
||||
}],
|
||||
"port": 443,
|
||||
"address": "example.domain"
|
||||
}]
|
||||
"vnext": [
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"alterId": 100,
|
||||
"security": "aes-128-gcm",
|
||||
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
|
||||
}
|
||||
],
|
||||
"port": 443,
|
||||
"address": "example.domain"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
@@ -36,7 +40,8 @@
|
||||
"loglevel": "info",
|
||||
"error": ""
|
||||
},
|
||||
"outboundDetour": [{
|
||||
"outboundDetour": [
|
||||
{
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
@@ -68,29 +73,31 @@
|
||||
"inboundDetour": null,
|
||||
"routing": {
|
||||
"settings": {
|
||||
"rules": [{
|
||||
"ip": [
|
||||
"0.0.0.0/8",
|
||||
"10.0.0.0/8",
|
||||
"100.64.0.0/10",
|
||||
"127.0.0.0/8",
|
||||
"169.254.0.0/16",
|
||||
"172.16.0.0/12",
|
||||
"192.0.0.0/24",
|
||||
"192.0.2.0/24",
|
||||
"192.168.0.0/16",
|
||||
"198.18.0.0/15",
|
||||
"198.51.100.0/24",
|
||||
"203.0.113.0/24",
|
||||
"::1/128",
|
||||
"fc00::/7",
|
||||
"fe80::/10"
|
||||
],
|
||||
"domain": null,
|
||||
"type": "field",
|
||||
"port": null,
|
||||
"outboundTag": "direct"
|
||||
}],
|
||||
"rules": [
|
||||
{
|
||||
"ip": [
|
||||
"0.0.0.0/8",
|
||||
"10.0.0.0/8",
|
||||
"100.64.0.0/10",
|
||||
"127.0.0.0/8",
|
||||
"169.254.0.0/16",
|
||||
"172.16.0.0/12",
|
||||
"192.0.0.0/24",
|
||||
"192.0.2.0/24",
|
||||
"192.168.0.0/16",
|
||||
"198.18.0.0/15",
|
||||
"198.51.100.0/24",
|
||||
"203.0.113.0/24",
|
||||
"::1/128",
|
||||
"fc00::/7",
|
||||
"fe80::/10"
|
||||
],
|
||||
"domain": null,
|
||||
"type": "field",
|
||||
"port": null,
|
||||
"outboundTag": "direct"
|
||||
}
|
||||
],
|
||||
"domainStrategy": "IPIfNonMatch"
|
||||
},
|
||||
"strategy": "rules"
|
||||
@@ -102,4 +109,4 @@
|
||||
"localhost"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
65
websocket+Caddy+TLS(use header)/config_server.json
Normal file → Executable file
65
websocket+Caddy+TLS(use header)/config_server.json
Normal file → Executable file
@@ -11,7 +11,8 @@
|
||||
"loglevel": "info",
|
||||
"error": "/var/log/v2ray/error.log"
|
||||
},
|
||||
"outboundDetour": [{
|
||||
"outboundDetour": [
|
||||
{
|
||||
"tag": "direct",
|
||||
"protocol": "freedom",
|
||||
"settings": null
|
||||
@@ -39,11 +40,13 @@
|
||||
"settings": {
|
||||
"ip": null,
|
||||
"udp": true,
|
||||
"clients": [{
|
||||
"alterId": 100,
|
||||
"security": "aes-128-gcm",
|
||||
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
|
||||
}],
|
||||
"clients": [
|
||||
{
|
||||
"alterId": 100,
|
||||
"security": "aes-128-gcm",
|
||||
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
|
||||
}
|
||||
],
|
||||
"auth": null
|
||||
},
|
||||
"protocol": "vmess",
|
||||
@@ -53,32 +56,34 @@
|
||||
"inboundDetour": null,
|
||||
"routing": {
|
||||
"settings": {
|
||||
"rules": [{
|
||||
"ip": [
|
||||
"0.0.0.0/8",
|
||||
"10.0.0.0/8",
|
||||
"100.64.0.0/10",
|
||||
"127.0.0.0/8",
|
||||
"169.254.0.0/16",
|
||||
"172.16.0.0/12",
|
||||
"192.0.0.0/24",
|
||||
"192.0.2.0/24",
|
||||
"192.168.0.0/16",
|
||||
"198.18.0.0/15",
|
||||
"198.51.100.0/24",
|
||||
"203.0.113.0/24",
|
||||
"::1/128",
|
||||
"fc00::/7",
|
||||
"fe80::/10"
|
||||
],
|
||||
"domain": null,
|
||||
"type": "field",
|
||||
"port": null,
|
||||
"outboundTag": "blocked"
|
||||
}],
|
||||
"rules": [
|
||||
{
|
||||
"ip": [
|
||||
"0.0.0.0/8",
|
||||
"10.0.0.0/8",
|
||||
"100.64.0.0/10",
|
||||
"127.0.0.0/8",
|
||||
"169.254.0.0/16",
|
||||
"172.16.0.0/12",
|
||||
"192.0.0.0/24",
|
||||
"192.0.2.0/24",
|
||||
"192.168.0.0/16",
|
||||
"198.18.0.0/15",
|
||||
"198.51.100.0/24",
|
||||
"203.0.113.0/24",
|
||||
"::1/128",
|
||||
"fc00::/7",
|
||||
"fe80::/10"
|
||||
],
|
||||
"domain": null,
|
||||
"type": "field",
|
||||
"port": null,
|
||||
"outboundTag": "blocked"
|
||||
}
|
||||
],
|
||||
"domainStrategy": null
|
||||
},
|
||||
"strategy": "rules"
|
||||
},
|
||||
"dns": null
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user