update for v4.27.4

This commit is contained in:
sHANJI 2020-08-29 12:40:14 +08:00
parent 94331b52bf
commit 0174f1bb86
5 changed files with 99 additions and 36 deletions

View File

@ -15,16 +15,27 @@
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
], ],
"fallback": { "fallbacks": [
"addr": "127.0.0.1", {
"port": 8001, "dest": 8001,
"xver": 1 "xver": 1
}, },
"fallback_h2": { {
"addr": "127.0.0.1", "path": "/testing",
"port": 8002, "dest": "127.0.0.1:8003",
"xver": 1 "xver": 1
}, },
{
"path": "/tested",
"dest": "127.0.0.1:8004",
"xver": 1
},
{
"alpn": "h2",
"dest": "8002",
"xver": 1
}
],
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {

View File

@ -54,6 +54,44 @@ http {
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
} }
server {
listen 127.0.0.1:8003 proxy_protocol;
server_name yourserver_8003.com;
set_real_ip_from 192.168.1.0/24;
charset utf-8;
access_log logs/yourserver_8003.access.log main;
location /testing {
root /var/www/html/testing;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
server {
listen 127.0.0.1:8004 proxy_protocol;
server_name yourserver_8004.com;
set_real_ip_from 192.168.1.0/24;
charset utf-8;
access_log logs/yourserver_8004.access.log main;
location /tested {
root /var/www/html/tested;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
server { server {
listen 127.0.0.1:8002 http2 proxy_protocol; listen 127.0.0.1:8002 http2 proxy_protocol;
server_name yourserver_8002.com; server_name yourserver_8002.com;

View File

@ -15,16 +15,19 @@
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
], ],
"fallback": { "fallbacks": [
"addr": "127.0.0.1", {
"port": 8001, "dest": 8001
"xver": 0
}, },
"fallback_h2": { {
"addr": "127.0.0.1", "path": "/testing",
"port": 8002, "dest": "127.0.0.1:8003"
"xver": 0
}, },
{
"path": "/tested",
"dest": "127.0.0.1:8004"
}
],
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {
@ -33,7 +36,6 @@
"tlsSettings": { "tlsSettings": {
"serverName": "example.domain", "serverName": "example.domain",
"alpn": [ "alpn": [
"h2",
"http/1.1" "http/1.1"
], ],
"certificates": [ "certificates": [

View File

@ -50,15 +50,32 @@ http {
} }
server { server {
listen 127.0.0.1:8002 http2; listen 127.0.0.1:8003;
server_name yourserver_8002.com; server_name yourserver_8001.com;
charset utf-8; charset utf-8;
access_log logs/yourserver_8002.access.log main; access_log logs/yourserver_8003.access.log main;
location / { location /testing {
root /var/www/html; root /var/www/html/testing;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
server {
listen 127.0.0.1:8004;
server_name yourserver_8001.com;
charset utf-8;
access_log logs/yourserver_8004.access.log main;
location /tested {
root /var/www/html/tested;
} }
error_page 404 /404.html; error_page 404 /404.html;

View File

@ -15,16 +15,11 @@
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
], ],
"fallback": { "fallbacks": [
"addr": "127.0.0.1", {
"port": 8001, "dest": 8000
"xver": 0 }
}, ],
"fallback_h2": {
"addr": "127.0.0.1",
"port": 8002,
"xver": 0
},
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {