You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by dy...@apache.org on 2018/08/09 18:53:07 UTC

[trafficcontrol] 03/04: changes POST to DELETE on cachegroupparameters

This is an automated email from the ASF dual-hosted git repository.

dylan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit b77061e39450abb050aafcf5aad3cf6e4c121303
Author: Jeremy Mitchell <mi...@gmail.com>
AuthorDate: Thu Aug 9 08:43:36 2018 -0600

    changes POST to DELETE on cachegroupparameters
---
 traffic_ops/traffic_ops_golang/deliveryservice/urlkey.go |  3 ---
 traffic_portal/conf/config.js                            | 12 ++++++------
 traffic_portal/v1/conf/config.js                         | 14 ++++++--------
 3 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/urlkey.go b/traffic_ops/traffic_ops_golang/deliveryservice/urlkey.go
index 80f8d3e..5cc4cd5 100644
--- a/traffic_ops/traffic_ops_golang/deliveryservice/urlkey.go
+++ b/traffic_ops/traffic_ops_golang/deliveryservice/urlkey.go
@@ -310,9 +310,6 @@ func GenerateURLSigKeys() (tc.URLSigKeys, error) {
 			if err != nil {
 				return nil, errors.New("generating crypto rand int: " + err.Error())
 			}
-			if !bi.IsInt64() {
-				return nil, fmt.Errorf("crypto rand int returned non-int64")
-			}
 			i := bi.Int64()
 			if i >= int64(len(chars)) {
 				return nil, fmt.Errorf("crypto rand int returned a number larger than requested")
diff --git a/traffic_portal/conf/config.js b/traffic_portal/conf/config.js
index 9830667..65cc1b4 100644
--- a/traffic_portal/conf/config.js
+++ b/traffic_portal/conf/config.js
@@ -21,27 +21,27 @@
 module.exports = {
     timeout: '120s',
     useSSL: true, // set to true if you plan to use https (self-signed or trusted certs).
-    port: 80, // set to http port
-    sslPort: 443, // set to https port
+    port: 8080, // set to http port
+    sslPort: 8442, // set to https port
     // if useSSL is true, generate ssl certs and provide the proper locations.
     ssl: {
         key:    '/etc/pki/tls/private/localhost.key',
         cert:   '/etc/pki/tls/certs/localhost.crt',
         ca:     [ '/etc/pki/tls/certs/ca-bundle.crt' ]
     },
-    // set api 'base_url' to the traffic ops api url (all api calls made from the traffic portal will be proxied to the api base_url)
+    // set api 'base_url' to the traffic ops api url (all api calls made from the traffic portal will be proxied to the api base_url. )
     api: {
-        base_url: 'https://trafficops.CHANGEME.domain.com/api/'
+        base_url: 'https://localhost:8443/api/'
     },
     // 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
     // change this to ./app/dist/public/ if you are running locally for development
     files: {
-        static: '/opt/traffic_portal/public'
+        static: './app/dist/public'
     },
     // default log location (this is where traffic_portal logs are written)
     // change this to ./server/log/access.log if you are running traffic portal locally for development
     log: {
-        stream: '/var/log/traffic_portal/access.log'
+        stream: './server/log/access.log'
     },
     reject_unauthorized: 0 // 0 if using self-signed certs, 1 if trusted certs
 };
diff --git a/traffic_portal/v1/conf/config.js b/traffic_portal/v1/conf/config.js
index f32449a..ec7668b 100644
--- a/traffic_portal/v1/conf/config.js
+++ b/traffic_portal/v1/conf/config.js
@@ -18,19 +18,17 @@
 // see config-template.js for comments
 module.exports = {
     timeout: '120s',
-    useSSL: false,
+    useSSL: true,
     port: 8080,
-    sslPort: 8443,
+    sslPort: 8442,
     proxyPort: 8009,
     ssl: {
-        key:    '/path/to/ssl.key',
-        cert:   '/path/to/ssl.crt',
-        ca:     [
-            '/path/to/ssl-bundle.crt'
-        ]
+        key:    '/etc/pki/tls/private/localhost.key',
+        cert:   '/etc/pki/tls/certs/localhost.crt',
+        ca:     [ '/etc/pki/tls/certs/ca-bundle.crt' ]
     },
     api: {
-        base_url: 'http://localhost:3000/api/'
+        base_url: 'https://localhost:8443/api/'
     },
     files: {
         static: './app/dist/public/'