Edit: while that doesn't explain it entirely, you really only need to change the location in the Nginx and the URL in the config.
will definitely not work. I've tried that. You need the
^~to make it work.
@lenovouser it worked for me first time. There must be something else going on with your configuration. Maybe it's the SSL or something, since my test server was just running on 80.
Might be, but I don't know how SSL should interfere with location blocks. Might spin a droplet up sometime later this day and test it.
Actually, you see what the error is if you look at my first 2 posts.
@lenovouser Your method works fine for me over https. Thanks for your persistence.
edit: I just had to add in these two lines for socket.io to work.
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";