Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 12639

[Solved] Odoo with Let's Encrypt and Nginx reverse proxy

$
0
0

Thanks for your response! Can you share your Nginx config? I did as you said, and the SSL certificate works, but after the login process the CSS files returned 404, so I added the location ~* /web/static/ block (I found that at https://www.odoo.com/forum/help-1/question/nginx-reverse-proxy-on-80-443-32052), but now I am getting these errors in the Chrome console:

GET https://mysite.example.com/web/content/245-dc05de8/web.assets_common.0.css
web:23 GET https://mysite.example.com/web/content/258-473815e/web.assets_backend.0.css
web:24 GET https://mysite.example.com/web/content/259-473815e/web.assets_backend.1.css
web:13 GET https://mysite.example.com/web/content/246-dc05de8/web.assets_common.js
web:15 Uncaught ReferenceError: odoo is not defined(anonymous function) @ web:15
web:25 GET https://mysite.example.com/web/content/260-473815e/web.assets_backend.js
web:23 GET https://mysite.example.com/web/content/258-473815e/web.assets_backend.0.css
web:24 GET https://mysite.example.com/web/content/259-473815e/web.assets_backend.1.css
web:28 Uncaught ReferenceError: $ is not defined

Relevant Nginx config:

add_header X-Proxy-Cache $upstream_cache_status;
location / {
    proxy_pass http://127.0.0.1:8069;
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

proxy_redirect      off;
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;
}

location ~* /web/static/ {
    proxy_cache_valid 200 60m;
    proxy_buffering on;
    expires 864000;
    proxy_pass http://127.0.0.1:8069;
}

Viewing all articles
Browse latest Browse all 12639

Trending Articles