Odoo 15 on CentOS 8 Configure Nginx Proxy (Without SSL) – Not recommended
Install Nginx Web server on CentOS 8:
4 January, 2022 by
Odoo 15 on CentOS 8 Configure Nginx Proxy (Without SSL) – Not recommended
Pranshu Tiwari




     

    Install Nginx Web server on CentOS 8 for Odoo 15 

    Create a new configuration file for odoo.

    Step 3:- sudo vim /etc/nginx/conf.d/odoo.conf

    Modify this configuration snippet to fit your setup.

    # Odoo Upstreams
    upstream odooserver {
     server 127.0.0.1:8069;
    }
    
    server {
        listen 80;
        server_name erpcall.com;
        access_log /var/log/nginx/odoo_access.log;
        error_log /var/log/nginx/odoo_error.log;
    
    
        # Proxy settings
        proxy_read_timeout 720s;
        proxy_connect_timeout 720s;
        proxy_send_timeout 720s;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
    
        # Request for root domain
        location / {
           proxy_redirect off;
           proxy_pass http://odooserver;
        }
    
        # Cache static files
        location ~* /web/static/ {
            proxy_cache_valid 200 90m;
            proxy_buffering on;
            expires 864000;
            proxy_pass http://odooserver;
        }
    
        # Gzip
        gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
        gzip on;
    }

    Replace erpcall with your domain name, then validate Nginx configuration file.

    $ sudo nginx -t
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

    If all looks good, restart Nginx.

    sudo systemctl restart nginx

    If Any help in odoo NGINX setup then feel free to call for the setup: +91-91709-63131 or drop email at business@erpcall.com


    in Odoo