Simple question. Point port 3000 to 80 for a site

Posted December 4, 2015 8.1k views
UbuntuNode.jsConfiguration ManagementMEANCMS

Not sure how it’s done or where to look.
When I start Keystonejs it starts at port 3000 and i want to be 80....

Is there a way to do that?

Brian R.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

KeystoneJS apps will default to using port 3000, but they will respect the PORT environmental variable. So in order to run it on port 80, you could start it like:

PORT=80 node keystone

See the web server options in the KeystoneJS configuration docs.

In a more robust production setup, you might want to use an Nginx reverse proxy instead of serving it on port 80 directly. Check out this tutorial for more information:

by Mitchell Anicas
Node.js is an open source Javascript runtime environment for easily building server-side and networking applications. The platform runs on Linux, OS X, FreeBSD, and Windows, and its applications are written in JavaScript. Node.js applications can be run at the command line but we will...