Skip to content

Instantly share code, notes, and snippets.

View shivamgpt38's full-sized avatar
:shipit:
Focusing

Shivam Kumar shivamgpt38

:shipit:
Focusing
View GitHub Profile
@shivamgpt38
shivamgpt38 / nginx.conf
Created August 11, 2020 15:59
Nginx configuration for NodeJs+socket.io+let's encrypt
upstream my-domain {
server 127.0.0.1:8080; // nodejs and socketio running on same port. chnage or create new upstream for socket if socket running on different port
}
server {
listen 80;
server_name *.example.com; //change domain
return 301 https://$host$request_uri;
}