File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,15 @@ hostname: reg.mydomain.com
66
77#  http related config
88http :
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
Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
33
44# echo $IP
55sudo 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
                                 You can’t perform that action at this time. 
               
                  
0 commit comments