Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help for websocket support #1472

Open
AaronMartinezMtz opened this issue Feb 6, 2024 · 1 comment
Open

help for websocket support #1472

AaronMartinezMtz opened this issue Feb 6, 2024 · 1 comment

Comments

@AaronMartinezMtz
Copy link

hi, i have a problem with integration of Socket.io, i'm trying with this config example:

i have this config on this page-> [Edit your custom_rules for Nginx]

if ($host = "example.example.com") {
set $PROXY_SCHEME "http";
set $PROXY_TO_PORT 60033;
set $WEBSOCKET_UPGRADE 1;
}

i have this config on this page-> [Edit proxy_params_common]

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

I also tried created a new server

i have this config on this page-> [Edit default.conf]

server {
listen 80;
server_name example.example.com;

location / {
    proxy_pass http://localhost:60033;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

location /socket.io {
    proxy_pass http://localhost:60033;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

}

how can i implement socket.io with engintron V2.2?

Thanks!!

@Chris-Sibaja
Copy link

I have the same doubt, there is no special configuration in the docs, that configuration you have is part of a pull request that has not been accepted. @fevangelou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants