Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
by
Fernando
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.
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
-
[Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar-
RE: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
byDevelopment Experts, Hussain Hammad -
Re: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar -
Re: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
byJose Luis Baños Consulting, S.L.U., Alejandro Párraga Alcázar -
Re: [Odoo CE 17.0] Discuss channel's chat does not update in SSL connection
byFernando
-