Skip to content

Commit

Permalink
Merge pull request KiriKira#16 from q158073378252010/2018.11.06
Browse files Browse the repository at this point in the history
 update nginx config add v2ray_v4.x config
  • Loading branch information
KiriKira authored Nov 20, 2018
2 parents 14496a3 + 0a911bd commit 99a1af9
Show file tree
Hide file tree
Showing 6 changed files with 288 additions and 146 deletions.
146 changes: 0 additions & 146 deletions websocket+Nginx+TLS/Nginx.config

This file was deleted.

Empty file modified websocket+Nginx+TLS/config_client.json
100755 → 100644
Empty file.
103 changes: 103 additions & 0 deletions websocket+Nginx+TLS/config_client_ver4.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"port": 10086,
"listen": "0.0.0.0",
"tag": "socks-in",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false
}
},
{
"port": 1087,
"listen": "0.0.0.0",
"tag": "http-in",
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"mux": {
"concurrency": 32,
"enabled": true
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"users": [
{
//注:填写uuid
"id": "UUID",
"alterId": 64,
"security": "auto"
}
],
//注:填写域名、端口
"address": "domain.Name",
"port": 1234
}
]
},
"streamSettings": {
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.4489.62 Safari/537.36",
//注:填写对应头部
"Host": "HOST",
"Accept-Encoding": "gzip",
"Pragma": "no-cache"
},
//注:ws路径
"path": "/PATH/"
},
"network": "ws",
"security": "tls"
},
"tag": "proxy"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"protocol": "freedom",
"settings": {},
"tag": "dicert"
}
],
"routing": {
//注:全域名规则匹配
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
//注:填写对应域名和host
"domain:domain.Name"
],
"outboundTag": "dicert"
},
{
"type": "field",
"inboundTag": [
"socks-in",
"http-in"
],
"outboundTag": "proxy"
}
]
},
"other": {}
}

Empty file modified websocket+Nginx+TLS/config_server.json
100755 → 100644
Empty file.
54 changes: 54 additions & 0 deletions websocket+Nginx+TLS/config_server_ver4.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"port": 10086,
"listen": "127.0.0.1",
"tag": "vmess-in",
"protocol": "vmess",
"settings": {
"clients": [
{
//注:UUID
"id": "UUID",
"alterId": 64
}
]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
//注:ws路径
"path": "/PATH/",
"headers": { }
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": { },
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": { },
"tag": "blocked"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"vmess-in"
],
"outboundTag": "direct"
}
]
}
}
Loading

0 comments on commit 99a1af9

Please sign in to comment.