dotnet / dotnet/AspNetCore.Docs
Added details to trouble shoot launch of the gRPC server under Nginx on Linux
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 97
Description
After few hours of struggle and many reading materials - I realized that Nginx does not support HTTP/2 to upstream server and therefore was getting all the time HTTP/1.x protocol mismatch exceptions.
It turned out that you have proxy to either `grpc://...` or `grpcs://...` (secure Kestrel) upstream server. Support for gRPC has been added in Nginx v1.13.10.
Would be great to note this down somewhere (probably here as it applies specifically to host gRPC under HTTP/2) to save time for others.
Thanks!
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: c730b5f9-031e-beab-b838-6e2f8befde30
* Version Independent ID: 84ddcb67-03be-655c-470a-f43a5152606f
* Content: [Troubleshoot gRPC on .NET Core](https://docs.microsoft.com/en-us/aspnet/core/grpc/troubleshoot?view=aspnetcore-3.1)
* Content Source: [aspnetcore/grpc/troubleshoot.md](https://github.com/dotnet/AspNetCore.Docs/blob/master/aspnetcore/grpc/troubleshoot.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-grpc**
* GitHub Login: @JamesNK
* Microsoft Alias: **jamesnk**
Contributor guide
Assessment
This issue has not been assessed yet.