the solution @Andrej provided is the correct one except since nginx reverse proxy is trying to connect to nginx inside docker using grpc on a secure port using SSL you should use grpcs instead of grpc
here is the correct config:
location /agent. {
grpc_pass grpcs://managed-grpc;
client_max_body_size 0;
}
location /inventory. {
grpc_pass grpcs://managed-grpc;
}
location /management. {
grpc_pass grpcs://managed-grpc;
}
location /server. {
grpc_pass grpcs://managed-grpc;
}