Mobile cable error in nginx reverse proxy

  • Used Zammad version: 6.3.1
  • Used Zammad installation type: docker in portainer
  • Operating system: Ubuntu Server 22.04
  • Browser + version: Chrome 128.0.6613.85

Expected behavior:

I want to use the mobile version but not working properly due to /cable connection.

I installed in portainer using docker. Everything seems working in desktop. The Zammad server is ehind Nginx Proxy Manager with this configuration:

location /ws {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header CLIENT_IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 86400;
        proxy_pass http://127.0.0.1:6042;
    }

    # action cable
    location /cable {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header CLIENT_IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 86400;
        proxy_pass http://127.0.0.1:3000;
    }

These are the error that im getting.

I check some post on the forum and any worked for me. I see a post using this config too:

 location / {
        proxy_set_header Host $http_host;
        proxy_set_header CLIENT_IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # Change this line in an SSO setup
        proxy_set_header X-Forwarded-User "";

        proxy_read_timeout 300;
        proxy_pass http://192.168.62.44:3000;

        gzip on;
        gzip_types text/plain text/xml text/css image/svg+xml application/javascript application/x-javascript application/json application/xml;
        gzip_proxied any;
    }

The problem if I put this on the config is that the webserver gives 502 error (modifying the ip to mine).

I hope this is a silly mistake but I can’t see it. Thanks :slight_smile: