commit
5547fdcd5a
@ -17,9 +17,15 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
grpc_read_timeout 300s;
|
grpc_read_timeout 300s;
|
||||||
grpc_send_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 configuration files
|
- Caddy configuration files
|
||||||
|
@ -17,9 +17,15 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
grpc_read_timeout 300s;
|
grpc_read_timeout 300s;
|
||||||
grpc_send_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 配置
|
- Caddy 配置
|
||||||
|
Loading…
x
Reference in New Issue
Block a user