Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
654 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

Did you find any permanent fix for this?

Awatar
Odrzuć
Autor

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.

Autor

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

Autor

* nginx as SSL termination /and load balancer/

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

Autor

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.

Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 25
4141
1
lip 25
1545
2
cze 25
3063
3
kwi 25
3116
1
kwi 25
3907