Fix[gRPC] nginx config (#30)

This commit is contained in:
xqzr 2021-05-12 18:44:13 +08:00 committed by GitHub
parent d95bf7142e
commit 784ab2ea15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,11 @@ Xray client <--- gRPC(TLS) ---> Caddy2 <--- gRPC(cleartext) ---> Xray server
## Nginx:
同时,您也可以选择使用 Nginx。示例配置片段如下来自 @xiaoQzhuren
同时,您也可以选择使用 Nginx。示例配置片段如下来自 [@xqzr](https://github.com/xqzr)
```conf
# 在 location 后填写 /{你的 ServiceName}
location {
if ($request_method != "POST") {
if ($content_type !~ "application/grpc") {
return 404;
}
client_max_body_size 0;