Hi,
It seems like you are facing an issue with long polling in Odoo 16, and the chat functionality is not refreshing. The provided configuration for Nginx includes settings for long polling and WebSocket, but it might not be resolving the problem.
To address this, you can try the following steps:
Update Nginx Configuration:
Ensure that your Nginx configuration is correctly set up. The provided configuration includes settings for long polling and WebSocket, but you may need to adapt it based on your specific server setup.
Nginx
upstream odoo {
least_conn;
server 127.0.0.1:8039;
server 127.0.0.1:8047;
}
server {
listen 443 ssl;
server_name odoo_dev_test.com;
ssl on;
ssl_certificate /etc/nginx/ssl/certificate.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
ssl_session_timeout 30m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RS$';
ssl_prefer_server_ciphers on;
gzip on;
gzip_min_length 1000;
location / {
proxy_pass http://odoo;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /longpolling {
proxy_pass http://odoo;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /websocket {
proxy_pass http://odoo;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
also please refer this doc for more clarification
https://www.odoo.com/documentation/17.0/administration/install/deploy.html#https
me too:(
Have the same problem! Odoo 16 CE. Does you find a solution?