Configure the Odoo container with Nginx container
5 March, 2021 by
Configure the Odoo container with Nginx container
Administrator
| No comments yet


upstream odoo {
  server <host-public-ip>:8069;
}

server {
   listen 80;
   server_name your.domain.net;
   return 301 https://your.domain.net$request_uri;
}

server {
    listen              443 ssl;
    server_name         your.domain.net;

    access_log /var/log/nginx/your.domain.net.access.log;
    error_log /var/log/nginx/your.domain.net.error.log;

    # SSL optimization
    keepalive_timeout   70;

    # SSL keys and options
    ssl_certificate     /home/boostthis/ssl.cert;
    ssl_certificate_key /home/boostthis/ssl.key;
    ssl_protocols       SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    # odoo server proxying
    location / {
        proxy_pass http://odoo;

        # you may define cache rules
        #if ( $uri ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ ) {
        #    expires 2w;
        #}

        proxy_ignore_headers X-Accel-Redirect;
        proxy_redirect http:// https://;
        include /etc/nginx/proxy_params;

    }

}


https://bitbucket.org/xcgd/odoo/issues/10/configure-the-odoo-container-with-nginx


Sign in to leave a comment