server {
listen 443 ssl http2;
server_name grpc.mydomain;
ssl_certificate /root/.acme.sh/andi/fullchain.cer;
ssl_certificate_key /root/.acme.sh/andi/andi.key;
#include /etc/letsencrypt/options-ssl-nginx.conf;
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
# Forces the header to be the one that is visible from the outside
proxy_set_header Host api.mydomain; # Please change to your URL
# Pass all headers through to the backend
proxy_pass_request_headers on;
location / {
grpc_pass grpc://192.168.3.115:50051;
}
}