This question has been flagged

I have Odoo 11 Community up and running on Ubuntu 18.04. When I setup and turned on nginx to reverse proxy, I suddenly lost my css for fonts roboto and font-awesome. I can also no longer view the website module backend, and cannot edit the frontend of the website. Everything was working before nginx was setup so I am sure it is the cause, but have no idea what part is causing the issue. 

Nginx Config /etc/nginx/sites-enabled/paintingacorn.com

## OpenERP backend ##
upstream odoo {
    server 127.0.0.1:8070;
}
## https site##
server {
    listen      443 default;
    server_name paintingacorn.com;
    root        /usr/share/nginx/html;
    index       index.html index.htm;
    # log files
    access_log  /var/log/nginx/odoo.access.log;
    error_log   /var/log/nginx/odoo.error.log;
    # ssl files
    ssl on;
    ssl_certificate     /etc/ssl/nginx/paintingacorn.com_ssl_certificate.cer;
    ssl_certificate_key /etc/ssl/nginx/_.paintingacorn.com_private_key.key;
    keepalive_timeout   60;
    # limit ciphers
    ssl_ciphers             HIGH:!ADH:!MD5;
    ssl_protocols           SSLv3 TLSv1;
    ssl_prefer_server_ciphers on;
    # proxy buffers
    proxy_buffers 16 64k;
    proxy_buffer_size 128k;
    ## default location ##
    location  / {
        proxy_pass  http://odoo;
        # force timeouts if the backend dies
        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
        proxy_redirect off;
        # set headers
        proxy_set_header    Host            $host;
        proxy_set_header    X-Real-IP       $remote_addr;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto https;
    }
    # cache some static data in memory for 60mins
    location ~* /web/static/ {
        proxy_cache_valid 200 10m;
        proxy_buffering on;
        expires 864000;
        proxy_pass https://odoo;
    }
}
## http redirects to https ##
server {
    listen      80;
    server_name paintingacorn.com;
    # Strict Transport Security
    add_header Strict-Transport-Security max-age=2592000;
    rewrite ^/.*$ https://$host$request_uri? permanent;
}


I have Odoo running as odoopa-server instead of odoo since I have multiple instances installed (only one running currently) which is also why it is at port 8070 instead of 8069.

Desperate to get this running since they are awaiting the site still.

Avatar
Discard

Why the proxy buffers? Also if your CSS has died have you tried this? https://github.com/OCA/ansible-odoo/issues/85