From 18df55da7b4567b1b528a16967693e7e351a745a Mon Sep 17 00:00:00 2001 From: Biswajit Mandal Date: Wed, 25 Mar 2015 10:01:28 +0530 Subject: [PATCH] Updating README.md file with redis authentication information. Related-Bug: #1392113 Change-Id: I1086d931237fb1e50b1486708cfc1a6cea68e543 --- README.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b813503b2..11ff76f27 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. @@ -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 @@ -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 + +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. @@ -157,3 +166,4 @@ Note: All the files/directories under 'webroot' directory of [Contrail Web Contr * Submit change requests via gerrit at . +