im trying to setup websocket for odoo
i have apache2+nginx
is there anything i should do other than modifying the nginx conf file?
i keep trying, but never worked. from odoo side gevent port is configured. i think i’m missing something, should i only add the location part in nginx configuration in my case or i have to modify something else ?
You’ll need to create a new template for odoo and adjust it to the related websocket → Web Templates and FastCGI/Proxy Cache | Hestia Control Panel
i already did it in /usr/local/hestia/data/templates/web/nginx
i copied the default.tpl and default.stpl and added the section
" location /websocket {
proxy_pass http://localhost:8085; # Match the Odoo gevent port, using HTTP internally
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 https;
proxy_cache_bypass $http_upgrade;
}
"
removed
“proxy_hide_header Upgrade”
still websocket connection isn’t working
should i do another template for apache2 if nginx is acting as reverse proxy ?