Skip to content

Not working remote behind nginx #609

@ujja

Description

@ujja

Hello boys,

Socket works well locally. But remote, after deploy it is not working.

  1. It is behind NGinx. Is this config correct?
    location /socket.io {
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version 1.1;
    #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_pass http://localhost:9092;
    }

  2. What is the correct hostname for server in this case? Is it required at all?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions