mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 07:11:36 +01:00
Revert "Set default mode to https"
This reverts commit 8a308a63e2
.
Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
bae6f17ad3
commit
6ea0514bb7
@ -6,16 +6,15 @@ hostname: reg.mydomain.com
|
|||||||
|
|
||||||
# http related config
|
# http related config
|
||||||
http:
|
http:
|
||||||
# port for http, default is 80. If https enabled, this port will redirect to https port
|
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
# https related config
|
# https related config
|
||||||
https:
|
# https:
|
||||||
# https port for harbor, default is 443
|
# # https port for harbor, default is 443
|
||||||
port: 443
|
# port: 443
|
||||||
#The path of cert and key files for nginx
|
# # The path of cert and key files for nginx
|
||||||
certificate: /data/cert/server.crt
|
# certificate: /your/certificate/path
|
||||||
private_key: /data/cert/server.key
|
# private_key: /your/private/key/path
|
||||||
|
|
||||||
# Uncomment external_url if you want to enable external proxy
|
# Uncomment external_url if you want to enable external proxy
|
||||||
# And when it enabled the hostname will no longer used
|
# And when it enabled the hostname will no longer used
|
||||||
|
@ -3,3 +3,7 @@ IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
|||||||
|
|
||||||
#echo $IP
|
#echo $IP
|
||||||
sudo sed "s/reg.mydomain.com/$IP/" -i make/harbor.yml
|
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
|
Loading…
Reference in New Issue
Block a user