support for configurable http/https for cds-ui server 49/135149/2
authorrajesh.kumar <rk00747546@techmahindra.com>
Mon, 26 Jun 2023 05:49:44 +0000 (05:49 +0000)
committerAndreas Geissler <andreas-geissler@telekom.de>
Mon, 26 Jun 2023 11:05:13 +0000 (11:05 +0000)
Issue-ID: CCSDK-3814
Change-ID: I73f97f986a817d423f93a8d922dcd9647b2606aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
cds-ui/server/index.js

index be6a3b7..084daa0 100644 (file)
@@ -42,7 +42,7 @@ if (require.main === module) {
   // Run the application
   const config = {
     rest: {
-      protocol: 'https',
+      protocol: process.env.PROTOCOL || 'https',
       pfx: p12,
       passphrase: passphrase,
       port: +process.env.PORT || 3000,