From 1c37ab26ff3bc19d2f14aedc14e34065ef0190e6 Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 14 Aug 2023 18:42:31 -0700 Subject: [PATCH] adding in endpoint for api --- nginx.conf | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1f8bd1d..45ad2e7 100644 --- a/nginx.conf +++ b/nginx.conf @@ -68,17 +68,18 @@ http { } } - # k8s api: passthrough grpc/tcp - # server { - # listen 80 http2; - # server_name api.flowy.live; - # - # location / { - # # Replace localhost:50051 with the address and port of your gRPC server - # # The 'grpc://' prefix is optional; unencrypted gRPC is the default - # grpc_pass grpc://localhost:50051; - # } - # } + #k8s api: passthrough grpc/tcp + server { + listen 80 http2; + server_name api.flowy.live; + + location / { + # Replace localhost:50051 with the address and port of your gRPC server + # The 'grpc://' prefix is optional; unencrypted gRPC is the default + grpc_pass grpc://localhost:30485; + } + } + # server { # listen 443 ssl http2; # server_name api.flowy.live;