This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |