Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

RE: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection

by
Development Experts, Hussain Hammad
- 08/10/2024 11:25:45

Dear Alejandro,

 

Odoo and Windows server is not really a good mix, we have history (Odoo 8, 11) using windows server. Odoo python libraries have differences and any faced issue in Odoo would be a pain to troubleshoot because of the ecosystem. Also nginx with IIS is another layer of configuration to proxy from IIS to nginx, unless your domain is needed to use nginx directly instead of IIS.

Most softwares are optimized for linux, so running on windows is really a pain.

 

I would suggest something we did for some internal services in our company. Install ubuntu (or any linux distro of your comfort) to be installed in Windows server virtual machine with (nginx, certbot, odoo, postgres) all in that virtual machine. If your domain is set in IIS then it need to be proxy’ed to the virtual machine where nginx would handle the rest.

This way you have performance and ecosystem of linux while still having windows server doing its other services.

 

 

Sincerely,

 

Hussain Al-Hammad | Engineering Manager

M +966 55 438 2968 |  hussain.hammad@dexberts.com

 

From: Redes Sociales JLBBERP <notifications@odoo-community.org>
Sent: Monday, October 7, 2024 9:53 AM
To: Contributors <contributors@odoo-community.org>
Subject: Re: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection

 

Hello everyone,

 

After trying to apply the fix suggested by Fernando, I forgot to mention that the problem I'm having is in a Windows Operative System, Windows Server 2022, and from my experience, I know how to use NGINX on Debian, but not on Windows. Also, I have my domain configured with IIS.

 

I need someone who could be able to help me with NGINX on Windows. I already downloaded it, but I don't know how to configure NGINX on Windows for my domain.

 

Thanks for the help.

El 03/10/2024 8:13 CEST Redes Sociales JLBBERP <redes_sociales@jlbberp.com> escribió:

 

 

Hello Fernando,

 

I have read your message, and I would like to thank you for answering. I will try your fix right now.

El 02/10/2024 12:42 CEST Fernando Infinity Draw <notifications@odoo-community.org> escribió:

 

 

Hi Alejandro

I have had that problem in the past, in my personal configuration. The problem was in the configuration of NGINX and how it routes the chat packets. I am not an expert on the subject and it may be something else, but I can tell you that after a lot of searching and consulting on the internet, what I discovered is that the main thing for the chat and chat notifications to work correctly via SSL, NGINX has to be configured correctly.

Taking into account that the version of NGINX that you have installed also influences to apply this configuration, I can't tell you, this one works, and this one doesn't. Since it is not the same for NGINX version 1.18 than for NGINX 1.26, but for 1.26 which is the one I currently have running, the settings that work are this bit. Logically you will have to adapt the "proxy_pass" for your specific configuration.

Trozo de "ENGINX"

  # Redirect websocket requests to the odoo gevent port for part of the chat notifications to work.
  location /websocket {
    proxy_pass http://your_odoo_domain_running_chat_here;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header X-Real-IP $remote_addr;
    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;
  }

I am assuming that the odoo configuration settings in your "*.conf" file are correctly set.

I hope this helped you.

El 02/10/2024 a las 10:27, Redes Sociales JLBBERP escribió:

Hello everyone,

 

I'm experiencing a problem in where if I connect to an Odoo CE website through their IP (HTTP connection), the discuss channel's chat live-update when someone is writing and when someone sends a message.

 

But if I enter through a domain with a SSL certificate (HTTPS connection), the live-update function doesn't work anymore, and neither I'm able to see who is writing on the chat.

 

The only temporal fix I was able to find was refreshing the website, that way the new messages appear on the chat.

 

Thanks in advance for the help.

 

Have a great day.

 

 

Reference