DevShivmohan / Learning-everything

Learning for developer only
0 stars 1 forks source link

Nginx configuration #37

Open DevShivmohan opened 1 year ago

DevShivmohan commented 1 year ago

Installation of Nginx and configuration in Ubuntu

http {

    upstream grpc_microservices{
            server 0.0.0.0:8090;
            server 0.0.0.0:8091;
    }

    server {

server_name 127.0.0.1

    listen 80 http2;

ssl_certificate /etc/nginx/cert_copy/server.crt;

ssl_certificate_key /etc/nginx/cert_copy/server.pem;

    location / {
            grpc_pass grpc://grpc_microservices;    
    }

}

Logging Settings

    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.