设置nginx与上游哪吒面板grpc保持连接

This commit is contained in:
Lemoe authored and GitHub committed 2022-06-20 11:45:13 +08:00
1 parent 05a310ff94
commit 85c0e41d64
2 files changed
+14 -2

No files matched your search

+7 -1
View File
@@ -17,9 +17,15 @@ server {
location / {
grpc_read_timeout 300s;
grpc_send_timeout 300s;
grpc_pass grpc://localhost:5555;
grpc_socket_keepalive on;
grpc_pass grpc://grpcservers;
}
}
upstream grpcservers {
server localhost:5555;
keepalive 1024;
}
```
- Caddy 配置