From 8a308a63e2fbbe1d2d7bbe7fceb8b6bc0ac0b364 Mon Sep 17 00:00:00 2001 From: Qian Deng Date: Tue, 9 Apr 2019 17:19:05 +0800 Subject: [PATCH] Set default mode to https Default mode to https The cert file value is set to previous version style Signed-off-by: Qian Deng --- make/harbor.yml | 16 ++++++++++------ tests/hostcfg.sh | 4 ---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/make/harbor.yml b/make/harbor.yml index 7abb44217..32aee3774 100644 --- a/make/harbor.yml +++ b/make/harbor.yml @@ -3,15 +3,19 @@ #The IP address or hostname to access admin UI and registry service. #DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname: reg.mydomain.com -# core, harbor + +# http related comfig http: + # port for http, default is 80. If https enabled, this port will redirect to https port port: 80 -# https: -# port: 443 -# #The path of cert and key files for nginx -# certificate: /your/certificate/path -# private_key: /your/private/key/path +# https related comfig +https: + # https port for harbor, default is 443 + port: 443 + #The path of cert and key files for nginx + certificate: /data/cert/server.crt + private_key: /data/cert/server.key # Uncomment extearnal_url if you want to enable external proxy # And when it enabled the hostname will no longger used diff --git a/tests/hostcfg.sh b/tests/hostcfg.sh index 9aae9c3a0..7fc455fcb 100755 --- a/tests/hostcfg.sh +++ b/tests/hostcfg.sh @@ -3,7 +3,3 @@ IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'` #echo $IP sudo sed "s/reg.mydomain.com/$IP/" -i make/harbor.yml - -echo "https:" >> make/harbor.yml -echo " certificate: /data/cert/server.crt" >> make/harbor.yml -echo " private_key: /data/cert/server.key" >> make/harbor.yml \ No newline at end of file