Skip to Content
Menu
This question has been flagged
1 Reply
3184 Views

I am using Odoo 11 for a Website and i am using Nginx as a reverse proxy server (because of certbot and lets encrypt). The website is running under https, so there is no problem. But the Slides module does not show PDFs.

I want to show PDFs there but every browser i tried blocks "mixed content". So the whole website is loaded over https but not the PDFs, they're loaded from a http path, but must be served over https.​

I tried the following:

web.base.url is set to https
web.base.url.freeze is set to true
proxy_mode = True -> is set in odoo.conf
I googled for the nginx problem, found some solutions, tried them, but none of them worked for me.

I don't know how to solve this problem. I am an absolute beginner when it comes to nginx.
Can somebody help me?

I know that there are already threads about this topic in this forum, but none of them really helped me.

Avatar
Discard
Best Answer

Add report.url parameter to system parameter and set it to https://[yourdomain] 

and try to logout and login and see the results. 

ٍsince you are using proxy mode, make sure to add the below to nginx config file:

 # Add Headers for odoo proxy mode
 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;

More Details:

https://www.odoo.com/documentation/11.0/setup/deploy.html

Avatar
Discard