Update ch07-xray-server.md

xray配置中的tlsSettings应该加上"alpn": "http/1.1",否则按照教程【服务器优化之二:开启 HTTP 自动跳转 HTTPS】操作之后,网站无法正常访问,访问网站的时候会出现ERR_HTTP2_PROTOCOL_ERROR,但xray还是可以正常工作的。
This commit is contained in:
Expyh 2023-01-14 22:01:18 +08:00 committed by GitHub
parent 8dd7f3a79c
commit 53f0474aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,6 +280,7 @@
"security": "tls",
"tlsSettings": {
"certificates": [
"alpn": "http/1.1",
{
"certificateFile": "/home/vpsadmin/xray_cert/xray.crt",
"keyFile": "/home/vpsadmin/xray_cert/xray.key"