diff options
author | Kanagaraj Manickam <mkr1481@gmail.com> | 2020-04-06 05:36:00 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2020-04-06 05:51:29 +0530 |
commit | b2ea3edac1ed644450e4587dd94cd4dd133744e0 (patch) | |
tree | 51faef442f76d3183e33472b5c56085a4fa41f13 /deployment | |
parent | 488d7b5c0e03e3a93fa82a2823a8e7b45fbe9fd1 (diff) |
Set HTTPS port to 443 & 9090
Issue-ID: CLI-255
Change-Id: I9ea233598f0502907fec3d2fea4b600c5f87b35e
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/docker/src/main/docker/Dockerfile | 11 | ||||
-rw-r--r-- | deployment/http/lighttpd/lighttpd.conf | 2 |
2 files changed, 6 insertions, 7 deletions
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile index fbeee83e..6d5a8bcf 100644 --- a/deployment/docker/src/main/docker/Dockerfile +++ b/deployment/docker/src/main/docker/Dockerfile @@ -27,8 +27,7 @@ ENV OPEN_CLI_HOME=/opt/oclip \ OPEN_CLI_DEBUG_PORT=5005 \ OPEN_CLI_MODE=shell \ OPEN_CLI_PRODUCT_IN_USE=onap-dublin \ - GOTTY_TITLE_FORMAT="{{ .command }}" \ - OCLIP_GRPC_SERVER="http://oclip_ocs_grpc:50051" + GOTTY_TITLE_FORMAT="{{ .command }}" ADD ./STAGE $OPEN_CLI_HOME WORKDIR $OPEN_CLI_HOME @@ -60,11 +59,11 @@ RUN sudo apt-get install -y lighttpd git curl pandoc vim && \ cp $OPEN_CLI_HOME/http/web/ocomp.key ~/.gotty.key && \ sudo cp $OPEN_CLI_HOME/http/web/ocomp.pem /etc/lighttpd/ocomp.pem #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 443 +EXPOSE 9090 EXPOSE 50051 -ENTRYPOINT if [ "$OPEN_CLI_MODE" = "daemon" ]; then sudo service lighttpd start; gotty -t --permit-write --reconnect oclip; \ +ENTRYPOINT if [ "$OPEN_CLI_MODE" = "daemon" ]; then sudo service lighttpd start; gotty -t --port 9090 --permit-write --reconnect oclip; \ elif [ "$OPEN_CLI_MODE" = "ocs-web" ]; then echo "****** OCLIP Web Command Server ******"; sudo 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 -t --permit-write --reconnect oclip; \ + elif [ "$OPEN_CLI_MODE" = "occ" ]; then echo "****** OCLIP Web Command Console (OCC) ******"; gotty -t --port 9090 --permit-write --reconnect oclip; \ else echo "****** OCLIP Command Shell******"; oclip -v && /bin/bash; fi diff --git a/deployment/http/lighttpd/lighttpd.conf b/deployment/http/lighttpd/lighttpd.conf index 32baf8af..d7555a06 100644 --- a/deployment/http/lighttpd/lighttpd.conf +++ b/deployment/http/lighttpd/lighttpd.conf @@ -15,7 +15,7 @@ server.document-root = "/var/www-data/servers/open-cli/" server.username = "www-data" server.groupname = "www-data" -server.port = 80 +server.port = 443 ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/ocomp.pem" |