Skip to content

Can't get it working with NginX #1274

@catamphetamine

Description

@catamphetamine

If i insert this into my nginx config

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

...

    location /socket.io/ {
        proxy_pass http://localhost:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }

Most times it won't connect - it's stuck.
Sometimes it connects after being stuck for some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions