Skip to content

Commit 6ea0514

Browse files
committed
Revert "Set default mode to https"
This reverts commit 8a308a6. Signed-off-by: Qian Deng <dengq@vmware.com>
1 parent bae6f17 commit 6ea0514

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

make/harbor.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ hostname: reg.mydomain.com
66

77
# http related config
88
http:
9-
# port for http, default is 80. If https enabled, this port will redirect to https port
109
port: 80
1110

1211
# https related config
13-
https:
14-
# https port for harbor, default is 443
15-
port: 443
16-
#The path of cert and key files for nginx
17-
certificate: /data/cert/server.crt
18-
private_key: /data/cert/server.key
12+
# https:
13+
# # https port for harbor, default is 443
14+
# port: 443
15+
# # The path of cert and key files for nginx
16+
# certificate: /your/certificate/path
17+
# private_key: /your/private/key/path
1918

2019
# Uncomment external_url if you want to enable external proxy
2120
# And when it enabled the hostname will no longer used

tests/hostcfg.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
33

44
#echo $IP
55
sudo sed "s/reg.mydomain.com/$IP/" -i make/harbor.yml
6+
7+
echo "https:" >> make/harbor.yml
8+
echo " certificate: /data/cert/server.crt" >> make/harbor.yml
9+
echo " private_key: /data/cert/server.key" >> make/harbor.yml

0 commit comments

Comments
 (0)