Open DevShivmohan opened 1 year ago
127.0.0.1:8090
127.0.0.1:8091
127.0.0.1:8080
127.0.0.1:80
127.0.0.1:80/<URL>
worker_processes auto; events { worker_connections 768; # multi_accept on; }
http {
upstream grpc_microservices{ server 0.0.0.0:8090; server 0.0.0.0:8091; } server {
listen 80 http2;
location / { grpc_pass grpc://grpc_microservices; }
}
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;
- Also attached screenshot for basic config of nginx based on above requirement. - ![image](https://github.com/DevShivmohan/Learning-everything/assets/72655528/bf9c2507-a757-4526-82aa-24e87ea63cca). - Now everything is done.
Installation of Nginx and configuration in Ubuntu
127.0.0.1:8090
and127.0.0.1:8091
.127.0.0.1:8080
.127.0.0.1:80
.127.0.0.1:80/<URL>
then nginx will routes to the grpc-service.http {
server_name 127.0.0.1
ssl_certificate /etc/nginx/cert_copy/server.crt;
ssl_certificate_key /etc/nginx/cert_copy/server.pem;
}
Logging Settings
}