Node.js based forum software built for the modern web
#936
Julian Lamcb012ffa7a1b
diff --git a/README.md b/README.mdindex 46911bfa7b..7f9acaf4e2 100644--- a/README.md+++ b/README.md@@ -58,19 +58,26 @@ Obtain all of the dependencies required by NodeBB:Initiate the setup script by running the app with the `--setup` flag:- $ node app --setup+ $ ./nodebb setupThe default settings are for a local server running on the default port, with a redis store on the same machine/port.Lastly, we run the forum.- $ node app+ $ ./nodebb startNodeBB can also be started with helper programs, such as `supervisor` and `forever`. [Take a look at the options here](https://github.com/designcreateplay/NodeBB/wiki/How-to-run-NodeBB).-*(Optional)* Some server configurations may install the node binary as `nodejs` instead of `node`. You can re-map it (so as to not break compatibility with `node-supervisor`) by running the following command:+## Securing NodeBB- # update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10+It is important to ensure that your NodeBB and database servers are secured. Bear these points in mind:++1. While some distributions set up Redis with a more restrictive configuration, Redis by default listens to all interfaces, which is especially dangerous when a server is open to the public. Some suggestions:+ * Set `bind_address` to `127.0.0.1` so as to restrict access to the local machine only+ * Use `requirepass` to secure Redis behind a password (preferably a long one)+ * Familiarise yourself with [Redis Security](http://redis.io/topics/security)+2. Use `iptables` to secure your server from unintended open ports. In Ubuntu, `ufw` provides a friendlier interface to working with `iptables`.+ * e.g. If your NodeBB is proxied, no ports should be open except 80 (and possibly 22, for SSH access)## Upgrading NodeBBdiff --git a/nodebb b/nodebbindex 616a6355a2..25bb31f1c5 100755--- a/nodebb+++ b/nodebb@@ -18,6 +18,10 @@ case "$1" inecho -e "\n\e[00;32mNodeBB Dependencies up-to-date!\e[00;00m";;;+ setup)+ node app --setup+ ;;+dev)echo "Launching NodeBB in \"development\" mode."echo "To run the production build of NodeBB, please use \"forever\"."