Open wbsartori opened 10 months ago
This is an example for nginx config
server {
location /socket.io
{
proxy_pass http://127.0.0.1:2120;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
}
Remember remove ssl config from phpsocket.io
Does this usage format also work if I am using supervisor for my websocket service? Or would I need to do some additional configuration?
Does this usage format also work if I am using supervisor for my websocket service? Or would I need to do some additional configuration?
If you want to use it with nginx/apache for SSL, it's pretty simple just like the above comment stated, nginx/apache will be handling the networking and SSL, it's called reverse proxy, and yes it can work with supervisor or forever.
Currently I use the socket passing the port and default settings of the SSL certificate. I would like to be able to use SSL directly with nginx so that it can manage the certificate for me. I found other issues talking about usage, but I wasn't successful in any of them.
My instance runs around this call:
My SSL configuration is in this format: