Skip to content

Commit

Permalink
Merge pull request zowe#20 from 1000TurquoisePogs/bugfix/https-only-d…
Browse files Browse the repository at this point in the history
…efault

Remove http as a default listening server.
  • Loading branch information
startup-engineer authored Jan 14, 2019
2 parents 2f1408b + 6494e98 commit 71dd400
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
3 changes: 0 additions & 3 deletions config/zluxserver.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"certificates": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../deploy/product/ZLUX/serverConfig/apiml-localca.cer"]
},
"http": {
"port": 8543
},
"mediationLayer": {
"server": {
"hostname": "localhost",
Expand Down
21 changes: 15 additions & 6 deletions js/zluxArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,20 @@ const DEFAULT_CONFIG = {
"pluginsDir":"../deploy/instance/"+PRODUCT_CODE+"/plugins",

"node": {
"http": {
"port": 8543
"https": {
"port": 8544,
//pfx (string), keys, certificates, certificateAuthorities, and certificateRevocationLists are all valid here.
"keys": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.key"],
"certificates": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../deploy/product/ZLUX/serverConfig/apiml-localca.cer"]
},
"eureka": {
"hostname": "localhost",
"port": 10011
"mediationLayer": {
"server": {
"hostname": "localhost",
"port": 10011,
"isHttps": false
},
"enabled": false
}
},
"dataserviceAuthentication": {
Expand Down Expand Up @@ -139,9 +147,10 @@ if (userInput.hostServer) {
zssHost = userInput.hostServer;
}
if (userInput.port) {
if (!configJSON.node.http) { configJSON.node.http = {}; }
configJSON.node.http.port = userInput.port;
}
if (userInput.securePort && configJSON.https) {
if (userInput.securePort && configJSON.node.https) {
configJSON.node.https.port = userInput.securePort;
}
if (userInput.noChild) {
Expand Down

0 comments on commit 71dd400

Please sign in to comment.