From df0fb3d06b110d21361c1a3c233300aa6eb42b59 Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 15 Aug 2023 10:49:14 -0700 Subject: [PATCH] trying something with type --- nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index 01ef84d..4208db4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -73,6 +73,8 @@ http { listen 80 http2; server_name api.flowy.live; + default_type application/grpc; + location / { # Replace localhost:50051 with the address and port of your gRPC server # The 'grpc://' prefix is optional; unencrypted gRPC is the default @@ -84,6 +86,8 @@ http { listen 443 ssl http2; server_name api.flowy.live; + default_type application/grpc; + # RSA certificate ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem; # managed by Certbot