Mixed Content Problem Odoo V11 - Presentations

Blocked loading mixed active content

Odoo Config file

The Odoo config file /opt/odoo/.odoorc needs to have the setting proxy_mode = True set

Odoo Settings

Goto the Settings -> Activate Developer Mode -> Technical Menu -> Parameters -> System Parameters ->   "web.base.url" Field Value Changed "http://mycompany.com" to "https://"mycompany.com


Key    web.base.url.freeze
Value    True

Fix NGINX virtual host config file

Example of NGINX Config file

server {
listen 80;
server_name myaccount.mycompany.com;
access_log /var/log/www/myaccount.mycompany.com.access.log;
error_log /var/log/www/myaccount.mycompany.com.error.log error;
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
index index.html index.htm;
server {
listen 443 ssl;
ssl_certificate /etc/ssl/servercerts/wildcard.mycompany.com.chained.crt; # path to your cacert.pem
ssl_certificate_key /etc/ssl/servercerts/wildcardnp.mycompany.com.key; # path to your privkey.pem
server_name myaccount.mycompany.com; #Domain Name
proxy_set_header X-Forwarded-For $remote_addr;

add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
server_tokens off;

location / {
error_page 502 =503 https://www.domainsomewhere/account-unavailable/;
proxy_pass http://svl-c4i-700.cdn.localdomain.net:8069;
## Odoo Settings
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $host;
proxy_redirect off;
proxy_request_buffering off;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
client_max_body_size 10240m;
location https://www.domainsomewhere.com/account-unavailable/ {
return 503;