Answer the question
In order to leave comments, you need to log in
How to set up sites-enabled in nginx so that it can switch ports?
In general, there is a site, it works on meteor, the meteor occupies port :3000 at startup , the question is how to make it so that when the meteor is running, the site includes this port:
server {
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question