fallback -> fallbacks

This commit is contained in:
RPRX 2020-08-29 04:45:16 +00:00 committed by GitHub
parent 94331b52bf
commit 554fa9a343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 67 deletions

View File

@ -15,14 +15,17 @@
} }
], ],
"decryption": "none", "decryption": "none",
"fallback": { "fallbacks": [
"unix": "/dev/shm/default.sock", {
"dest": "/dev/shm/default.sock",
"xver": 1 "xver": 1
}, },
"fallback_h2": { {
"unix": "/dev/shm/h2.sock", "alpn": "h2",
"dest": "/dev/shm/h2.sock",
"xver": 1 "xver": 1
} }
]
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",

View File

@ -15,9 +15,11 @@
} }
], ],
"decryption": "none", "decryption": "none",
"fallback": { "fallbacks": [
"port": 80 {
"dest": 80
} }
]
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",

View File

@ -15,17 +15,18 @@
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
], ],
"fallback": { "decryption": "none",
"addr": "127.0.0.1", "fallbacks": [
"port": 8001, {
"dest": 8001,
"xver": 1 "xver": 1
}, },
"fallback_h2": { {
"addr": "127.0.0.1", "alpn": "h2",
"port": 8002, "dest": 8002,
"xver": 1 "xver": 1
}, }
"decryption": "none" ]
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
@ -38,8 +39,8 @@
], ],
"certificates": [ "certificates": [
{ {
"certificateFile": "/path/to/certificate.crt", "certificateFile": "/path/to/fullchain.crt",
"keyFile": "/path/to/key.key" "keyFile": "/path/to/private.key"
} }
] ]
} }

View File

@ -15,17 +15,16 @@
"email": "love@v2fly.org" "email": "love@v2fly.org"
} }
], ],
"fallback": { "decryption": "none",
"addr": "127.0.0.1", "fallbacks": [
"port": 8001, {
"xver": 0 "dest": 8001
}, },
"fallback_h2": { {
"addr": "127.0.0.1", "alpn": "h2",
"port": 8002, "dest": 8002
"xver": 0 }
}, ]
"decryption": "none"
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
@ -38,8 +37,8 @@
], ],
"certificates": [ "certificates": [
{ {
"certificateFile": "/path/to/certificate.crt", "certificateFile": "/path/to/fullchain.crt",
"keyFile": "/path/to/key.key" "keyFile": "/path/to/private.key"
} }
] ]
} }

View File

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

View File

@ -48,21 +48,4 @@ http {
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
} }
server {
listen 127.0.0.1:8002 http2;
server_name yourserver_8002.com;
charset utf-8;
access_log logs/yourserver_8002.access.log main;
location / {
root /var/www/html;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
} }