Skip to content

Instantly share code, notes, and snippets.

@fais3000
fais3000 / nginx-socketio-ssl-reverse-proxy.conf
Last active Jun 12, 2018 — forked from gmanau/nginx-socketio-ssl-reverse-proxy.conf
How to setup nginx as nodejs/socket.io reverse proxy over SSL
View nginx-socketio-ssl-reverse-proxy.conf
upstream upstream-nodejs {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name mydomain.com www.mydomain.com;
rewrite ^(.*) https://$host$1 permanent;
}