summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/index.js
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-07-08 15:13:12 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-08 15:13:12 +0000
commit631f0cd80e86de12e1eff60845103e763ddc2e5c (patch)
tree425ea5917ed978464f558902263164cf8ca00c49 /cds-ui/server/index.js
parentc36b242d34269c2e32e87b385856e09f0a118b17 (diff)
parentb9ee86938b144b93e7caef85e6d5d5f51a2b0628 (diff)
Merge "Enable https for cds-ui"
Diffstat (limited to 'cds-ui/server/index.js')
-rw-r--r--cds-ui/server/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cds-ui/server/index.js b/cds-ui/server/index.js
index b79f7d6d3..161a18be7 100644
--- a/cds-ui/server/index.js
+++ b/cds-ui/server/index.js
@@ -20,6 +20,7 @@ limitations under the License.
*/
const application = require('./dist');
+const fs = require('fs')
module.exports = application;
@@ -27,6 +28,9 @@ if (require.main === module) {
// Run the application
const config = {
rest: {
+ protocol: 'https',
+ key: fs.readFileSync('server.key'),
+ cert: fs.readFileSync('server.cert'),
port: +process.env.PORT || 3000,
host: process.env.HOST || 'localhost',
openApiSpec: {