Compare commits

..

No commits in common. "4effea1dc10b2c75b627627e7cec5e58afd1438b" and "5d6676b34c5a559e24b54df856026f1667df92ef" have entirely different histories.

3 changed files with 3 additions and 16 deletions

View File

@ -37,26 +37,13 @@ VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallbac
## What to change before use? ## What to change before use?
* Xray server.json * Xray server.json
* **SSL Certificates and keys** absolute paths in Vless-TCP-XTLS (`inbounds[0].streamSettings.xtlsSettings.certificates`) * **SSL Certificates and keys** absolute paths in Vless-TCP-XTLS (`inbounds[0].streamSettings.xtlsSettings.certificates`)
* For the main domain:
* `sed -i 's/\/etc\/ssl\/example.com\/domain.pem/PATH_TO_YOUR_FULLCHAIN/g' *`
* `sed -i 's/\/etc\/ssl\/example.com\/domain-key.pem/PATH_TO_THE_FULLCHAINS_CERT/g' *`
* For the domain behind cdn:
* `sed -i 's/\/etc\/ssl\/behindcdn.com\/domain.pem/PATH_TO_YOUR_FULLCHAIN/g' *`
* `sed -i 's/\/etc\/ssl\/behindcdn.com\/domain-key.pem/PATH_TO_THE_FULLCHAINS_CERT/g' *`
* **Your Domain** in both and server (for fallbacks section) and client configs.
* `sed -i 's/example.com/YOUR_DOMAIN/g' *`
* `sed -i 's/behindcdn.com/YOUR_CDN_DOMAIN/g' *` (if you don't have one, remove the config for cdn domain from inbounds[0].streamSettings.tlsSettings.certificates in server.json)
* **Password** of Trojan and ShadowSocks configs * **Password** of Trojan and ShadowSocks configs
* `sed -i 's/desdemona99/YOUR_PASSWORD/g' *`
* **UUID** of Vless and VMESS configs * **UUID** of Vless and VMESS configs
* `sed -i 's/90e4903e-66a4-45f7-abda-fd5d5ed7f797/YOUR_UUID/g' *`
* **(Optional)** Path of all sub-configs. For **Websocket**-->`wsSettings.path`, for **TCP**-->`tcpSettings.header.request.path`, for **gRPC**-->`grpcSettings.serviceName` and for **H2**-->`httpSettings.path`. * **(Optional)** Path of all sub-configs. For **Websocket**-->`wsSettings.path`, for **TCP**-->`tcpSettings.header.request.path`, for **gRPC**-->`grpcSettings.serviceName` and for **H2**-->`httpSettings.path`.
* **(Optional)** The SNIs of H2 fallbacks (`inbounds[0].settings.fallbacks.[].name`) could also be changed but they should be consistent between client and server. (Read the notes on HTTP2 inbounds) * **(Optional)** The SNIs of H2 fallbacks (`inbounds[0].settings.fallbacks.[].name`) could also be changed but they should be consistent between client and server. (Read the notes on HTTP2 inbounds)
* Nginx nginx.conf * Nginx nginx.conf
* Domain names * Domain names
* `sed -i 's/example.com/YOUR_DOMAIN/g' *`
* `sed -i 's/behindcdn.com/YOUR_CDN_DOMAIN/g' *` (if you don't have one, leave YOUR_CDN_DOMAIN blank.)
* **(Optional)** If gRPC serviceNames are changed in server.json, they **should** also be changed in Nginx config * **(Optional)** If gRPC serviceNames are changed in server.json, they **should** also be changed in Nginx config
## Notes: ## Notes:

View File

@ -1,7 +1,7 @@
xx.com { xx.com {
@grpc { @grpc {
protocol grpc protocol grpc
path /ServiceName/* # 修改为你自己的 ServiceName且仅能存在两个斜杠。/MyService/ServiceName/*会导致错误) path # 填写 /你的 ServiceName/*
} }
reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket { reverse_proxy @grpc unix//dev/shm/Xray-VLESS-gRPC.socket {
transport http { transport http {

View File

@ -36,7 +36,7 @@
"network": "grpc", "network": "grpc",
"security": "tls", "security": "tls",
"grpcSettings": { "grpcSettings": {
"serviceName": "", // ServiceName "serviceName": "", // ServiceName
"multiMode": false, "multiMode": false,
//"idle_timeout": 60, // //"idle_timeout": 60, //
//"initial_windows_size": 35536 // Cloudflare CDN Cloudflare CDN h2 GOAWAY //"initial_windows_size": 35536 // Cloudflare CDN Cloudflare CDN h2 GOAWAY