You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/07/20 01:39:47 UTC

[1/2] incubator-trafficcontrol git commit: updates TP readme files and adds comments to TP config file

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 53db37990 -> 64f61dde0


updates TP readme files and adds comments to TP config file


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/fdcf54dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/fdcf54dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/fdcf54dd

Branch: refs/heads/master
Commit: fdcf54dd51cc62563b38164f56d1a6838f60b088
Parents: 53db379
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Wed Jul 19 19:28:23 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Wed Jul 19 19:39:30 2017 -0600

----------------------------------------------------------------------
 traffic_portal/README.md       |  4 +++-
 traffic_portal/build/README.md | 11 ++++++-----
 traffic_portal/conf/config.js  |  8 ++++----
 3 files changed, 13 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/fdcf54dd/traffic_portal/README.md
----------------------------------------------------------------------
diff --git a/traffic_portal/README.md b/traffic_portal/README.md
index 51ce40a..2fd11c3 100644
--- a/traffic_portal/README.md
+++ b/traffic_portal/README.md
@@ -19,4 +19,6 @@
 
 # Traffic Portal
 
-An AngularJS client served from a lightweight Node.js web server. Traffic Portal was designed to consume the Traffic Ops 2.0 RESTful API.
+An AngularJS client served from a lightweight Node.js web server. Traffic Portal was designed to consume the Traffic Ops API.
+
+Installation / configuration instructions are found at https://github.com/apache/incubator-trafficcontrol/tree/master/traffic_portal/build

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/fdcf54dd/traffic_portal/build/README.md
----------------------------------------------------------------------
diff --git a/traffic_portal/build/README.md b/traffic_portal/build/README.md
index 8158584..56b6a35 100644
--- a/traffic_portal/build/README.md
+++ b/traffic_portal/build/README.md
@@ -17,11 +17,11 @@
     under the License.
 -->
 
-# Traffic Portal Installation
+# Traffic Portal Installation / Configuration
 
-### 1. Build RPM w/ Docker
+### 1. Build Traffic Portal RPM w/ Docker or fetch Traffic Portal RPM from [Jenkins](https://builds.apache.org/view/S-Z/view/TrafficControl/job/incubator-trafficcontrol-master-build)
 
-* See https://github.com/apache/incubator-trafficcontrol/blob/master/BUILD.md
+* Build instructions: https://github.com/apache/incubator-trafficcontrol/blob/master/BUILD.md
 
 ### 2. Install
 
@@ -43,7 +43,7 @@
 * Configure Traffic Portal
 
     ```
-    $ sudo vi /etc/traffic_portal/conf/config.js (read the inline comments)
+    $ sudo vim /etc/traffic_portal/conf/config.js (read the inline comments)
     ```
 
 ### 4. Run
@@ -57,10 +57,11 @@
 * Navigate to Traffic Portal
 
     ```
-    $ http://localhost:8080
+    $ http(s)://ip-address:port
     ```
 
 #### Notes
 
     - Traffic Portal consumes the Traffic Ops API, therefore, an instance of Traffic Ops must be running.
+    - Traffic Portal and Traffic Ops must be running on the same protocol (http or https).
     - This is known to work with CentOS 6.7 and Centos 7 as the host environment.

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/fdcf54dd/traffic_portal/conf/config.js
----------------------------------------------------------------------
diff --git a/traffic_portal/conf/config.js b/traffic_portal/conf/config.js
index 63c0e56..dca76b7 100644
--- a/traffic_portal/conf/config.js
+++ b/traffic_portal/conf/config.js
@@ -21,8 +21,8 @@
 module.exports = {
     timeout: '120s',
     useSSL: false, // set to true if you plan to use https (self-signed or trusted certs).
-    port: 8080,
-    sslPort: 8443,
+    port: 8080, // set to http port. i.e. 80
+    sslPort: 8443, // set to https port. i.e. 443
     // if useSSL is true, generate ssl certs and provide the proper locations.
     ssl: {
         key:    '/etc/pki/tls/private/localhost.key',
@@ -33,11 +33,11 @@ module.exports = {
     api: {
         base_url: 'http://localhost:3000/api/'
     },
-    // default static files location (this is where the traffic portal html, css and javascript was installed) - /opt/traffic_portal/public
+    // default static files location (this is where the traffic portal html, css and javascript was installed. rpm installs these files at /opt/traffic_portal/public
     files: {
         static: './app/dist/public/'
     },
-    // default log location (this is where traffic_portal logs are written) - /var/log/traffic_portal/access.log
+    // default log location (this is where traffic_portal logs are written) - /var/log/traffic_portal/access.log is a nice location
     log: {
         stream: './server/log/access.log'
     },


[2/2] incubator-trafficcontrol git commit: This closes #741

Posted by ne...@apache.org.
This closes #741


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/64f61dde
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/64f61dde
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/64f61dde

Branch: refs/heads/master
Commit: 64f61dde0914f536aec0a83befca85376f286bd5
Parents: fdcf54d
Author: David Neuman <da...@gmail.com>
Authored: Wed Jul 19 19:39:35 2017 -0600
Committer: David Neuman <da...@gmail.com>
Committed: Wed Jul 19 19:39:35 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------