From 85c6cc8a2e99312da893f8dba547137aa1c1c62d Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Fri, 21 Feb 2020 16:40:59 +0530 Subject: Enable HTTPS Issue-ID: OJSI-129 Change-Id: Ida43730821061fae1904bd16b140b0c5f98ddf55 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/docker/src/main/docker/Dockerfile | 7 +++++-- deployment/http/web/index.html | 8 ++++---- deployment/http/web/ocomp.crt | 21 +++++++++++++++++++++ deployment/http/web/ocomp.key | 28 ++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 deployment/http/web/ocomp.crt create mode 100644 deployment/http/web/ocomp.key (limited to 'deployment') diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile index 1c5fd404..44ae2efc 100644 --- a/deployment/docker/src/main/docker/Dockerfile +++ b/deployment/docker/src/main/docker/Dockerfile @@ -47,11 +47,14 @@ RUN apt-get update && apt-get install -y lighttpd git curl pandoc vim && \ if [ ! -d /var/www-data/servers/open-cli/ ]; then mkdir -p /var/www-data/servers/open-cli/; fi && \ cp $OPEN_CLI_HOME/http/web/*.* /var/www-data/servers/open-cli/ && \ cp $OPEN_CLI_HOME/http/lighttpd/10-proxy.conf /etc/lighttpd/conf-enabled/ && \ - cp $OPEN_CLI_HOME/installer/cli-*.zip /var/www-data/servers/open-cli/oclip.zip + cp $OPEN_CLI_HOME/installer/cli-*.zip /var/www-data/servers/open-cli/oclip.zip && \ + cp $OPEN_CLI_HOME/http/web/ocomp.crt ~/.gotty.crt && \ + cp $OPEN_CLI_HOME/http/web/ocomp.key ~/.gotty.key + #openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout ~/.ocomp.key -out ~/.ocomp.crt -subj "/C=IN/ST=KA/L=BLR/O=CLI/CN=onap" EXPOSE 80 EXPOSE 8080 EXPOSE 50051 -ENTRYPOINT if [ "$OPEN_CLI_MODE" = "daemon" ]; then service lighttpd start; gotty --permit-write --reconnect oclip; \ +ENTRYPOINT if [ "$OPEN_CLI_MODE" = "daemon" ]; then service lighttpd start; gotty -t --permit-write --reconnect oclip; \ elif [ "$OPEN_CLI_MODE" = "ocs-web" ]; then echo "****** OCLIP Web Command Server ******"; service lighttpd start; \ elif [ "$OPEN_CLI_MODE" = "ocs-grpc" ]; then echo "****** OCLIP gRPC Command Server ******"; oclip-grpc; \ elif [ "$OPEN_CLI_MODE" = "occ" ]; then echo "****** OCLIP Web Command Console (OCC) ******"; gotty --permit-write --reconnect oclip; \ diff --git a/deployment/http/web/index.html b/deployment/http/web/index.html index 95d3772c..0b9d6b62 100644 --- a/deployment/http/web/index.html +++ b/deployment/http/web/index.html @@ -1,6 +1,6 @@ -