Skip to content

Commit

Permalink
Updating README.md file with redis authentication information.
Browse files Browse the repository at this point in the history
Related-Bug: #1392113

Change-Id: I1086d931237fb1e50b1486708cfc1a6cea68e543
  • Loading branch information
biswajit-mandal committed Mar 25, 2015
1 parent 787c21f commit 18df55d
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions README.md
Expand Up @@ -19,14 +19,9 @@ The code that **implements** various features of the Web UI (such as Dashboard,
---
1) Download, extract and compile the following.

a) **Node.JS** v0.8.15 (Recommended).
a) **Node.JS**

wget http://nodejs.org/dist/v0.8.15/node-v0.8.15.tar.gz -O /tmp/node-v0.8.15.tar.gz
cd /tmp
tar -xf node-v0.8.15.tar.gz
./configure
make
sudo make install
Install the latest nodejs from https://nodejs.org/

Verify Node.JS installation.

Expand Down Expand Up @@ -64,7 +59,7 @@ HTTPS clone URL:
4) Execute the following commands under `contrail-web-core` directory to setup development environment. It downloads all the third-party libraries and generates the files required for Contrail Web UI.

make fetch-pkgs-dev
make dev-env
make dev-env REPO=webController

'make fetch-pkgs-dev' downloads all the third-party modules required for development.

Expand All @@ -73,9 +68,9 @@ Please note this step changes the file contents in dashboard.tmpl, login.tmpl an

make rem-ts-prod

5) Start `redis-server` on port 6383, 6383 is the default port used by Contrail Web UI, the port can be changed as explained in 'Configuration parameters' section.
5) Start `redis-server` on port 6379, 6379 is the default port used by Contrail Web UI, the port can be changed as explained in 'Configuration parameters' section.

redis-server --port 6383
redis-server --port 6379


#### Configuration parameters
Expand Down Expand Up @@ -108,6 +103,20 @@ To Change the redis-server port, change the below entry and start redis-server o

config.redis_server_port

Set the path where contrail-web-controller code resides

config.featurePkg.webController.path

You must set the above configuration before issuing "make dev-env REPO=webController".

If you want to enable authentication support of contrail-webui while communicating with redis-server, then in redis config file set the password

requirepass <password>

Same password needs to be specified in contrail-webui config file:

config.redis_password

#### Starting web servers
---
Create an empty file `/var/log/contrail-webui.log`. This is the log file for Contrail Web UI.
Expand Down Expand Up @@ -157,3 +166,4 @@ Note: All the files/directories under 'webroot' directory of [Contrail Web Contr
* Submit change requests via gerrit at <http://review.opencontrail.org>.



0 comments on commit 18df55d

Please sign in to comment.