跳至內容
選單
此問題已被標幟
2 回覆
664 瀏覽次數

When opening Editor, the page doesn't load (or you could call it loading forever), and this error is given in browser console:

  • Mixed Content: The page at [redacted] was loaded over HTTPS, but requested an insecure frame [redacted] This request has been blocked; the content must be served over HTTPS.

I see some other threads on this issue but everyone was using AWS ALB.

Have a workaround in place for now - staff needing to edit website can do so via the public IP address, bypassing SSL. But this is not a permanent solution.

Is the way to solve this to set X-Forwarded-Proto in my load balancer? There doesn't seem to be a feature for that. I have tried to use an LLM to troubleshoot this but it starts going in circles with the same suggestions:

  • Set web.base.url and web.base.url.freeze, done this
  • Set the website's domain address in Website -> Settings, done this
  • add ?debug=asset parameter to the URL, done this
  • at one point, suggest I delete the filestore folder to empty cache, which seemed like a really bad idea, so I did not do that, lol


頭像
捨棄
最佳答案

Did you find any permanent fix for this?

頭像
捨棄
作者

Yes, I switched from AWS Application Load Balancer to Nginx for SSL termination. In my case, nginx is running on the same server as the Odoo server, because we do not expect to need multiple servers yet.

so your use-case is different, i need multiple servers in load balancer.

作者

You can still switch to nginx as SSL termination and likely solve this problem. From nginx docs:

> NGINX Open Source supports four load balancing methods: Round Robin, Least Connections, IP Hash, and Generic Hash

作者

* nginx as SSL termination /and load balancer/

And how to manage the user sessions in case of multiple servers with nginx load balancing?

作者

That goes outside my area of expertise but I have heard of ways of doing this. At a glance, it looks like you could achieve this with open source nginx by using IP hashing, and the paid tier of nginx offers more sophisticated sticky session support.

作者 最佳答案

I solved this problem by switching to Nginx for SSL termination. It didn't take long and immediately cleared up the issue.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 25
4142
1
7月 25
1549
2
6月 25
3066
3
4月 25
3116
1
4月 25
3910