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

not getting response header on ratchet #1034

Open
NS000001 opened this issue Aug 3, 2023 · 0 comments
Open

not getting response header on ratchet #1034

NS000001 opened this issue Aug 3, 2023 · 0 comments

Comments

@NS000001
Copy link

NS000001 commented Aug 3, 2023

using supervisor

it is running a websocket on port 8090.

nginx server block

 
root /var/www/html/locum-tenens-board/public;

index index.php index.html;
 
server_name stage.locumtenensconnections.com;
listen 80 ;
 

      error_log /home/ubuntu/error.log;
      access_log /home/ubuntu/access.log;

      client_max_body_size 10M;
      client_body_buffer_size     32k;
      client_header_buffer_size   8k;
      large_client_header_buffers 8 64k;
      fastcgi_buffers 16 16k;
      fastcgi_buffer_size 32k;
      proxy_buffer_size   128k;
      proxy_buffers   4 256k;
      proxy_busy_buffers_size   256k;


location / {

try_files $uri $uri/ /index.php?$query_string;
}

location /chat {
    proxy_pass http://127.0.0.1:8090;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;   
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;

}  

 
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
# With php-fpm (or other unix sockets);
}

location ~ /\.(?!well-known).* {
        deny all;
    }

    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/stage.locumtenensconnections.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/stage.locumtenensconnections.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot



}
server {
    if ($host = stage.locumtenensconnections.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


listen 80 ;
listen [::]:80 ;
 
server_name stage.locumtenensconnections.com;
    return 404; # managed by Certbot
}

Client

wss://stage.locumtenensconnections.com/?token=xxxxxxxxxxxxx

getting below request header

Screenshot from 2023-08-03 10-56-54

but in response, there is no response header. It will be really helpful if someone can point out the problem.

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

1 participant