net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI nginx-forum at forum.nginx.org
Fri Jan 31 14:21:39 UTC 2020


Sorry I have to complete the last answer:

>From the laptop:

(base) marco at marco-U36SG:~$ curl -vk
https://ggc.world/sockjs-node/info?t=1580397983088
*   Trying 2.36.58.214:443...
* TCP_NODELAY set
* Connected to ggc.world (2.36.58.214) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /home/marco/anaconda3/ssl/cacert.pem
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=ggc.world
*  start date: Nov 30 11:22:10 2019 GMT
*  expire date: Feb 28 11:22:10 2020 GMT
*  issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
*  SSL certificate verify ok.
> GET /sockjs-node/info?t=1580397983088 HTTP/1.1
> Host: ggc.world
> User-Agent: curl/7.65.2
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.14.0 (Ubuntu)
< Date: Fri, 31 Jan 2020 14:20:19 GMT
< Content-Type: application/json; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Vary: Origin
< Cache-Control: no-store, no-cache, no-transform, must-revalidate,
max-age=0
< Strict-Transport-Security: max-age=31536000
< 
* Connection #0 to host ggc.world left intact
{"websocket":true,"origins":["*:*"],"cookie_needed":false,"entropy":1587194190}

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286850,286880#msg-286880



More information about the nginx mailing list