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
Jose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar
- 07/10/2024 08:46:43
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.

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

 
 

Reference