i have my VM reverse proxy and VM espoCRM websocket working
for info : wan => vm proxy nginx:443 => vm espocrm apache:80
for info : i have a lan dns server and not same A/CNAME of wan dns server
if i see your config,.. your problem is here (at 98%):
PHP Code:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server BACK_END_VM_IP:8080; // it's open in firewall of backend vm where espocrm.
}
server {
server_name mycrm.domain.be; // domaine name of espocrm but it's ip of proxy : sample : mycrm.domain.be => ip of proxy
set $upstream BACK_END_VM_IP;
server_tokens off;
location /wss {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 12h;
}
Leave a comment: