Forked from arastu/create-cert-and-key-with-certbot.sh
Created
April 20, 2020 11:02
-
-
Save includeamin/21d6014e97733f2b8beee1a3a123c973 to your computer and use it in GitHub Desktop.
Configuring Harbor with HTTPS Access via letsencrypt(certbot with --standalone flag)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo certbot certonly --standalone -d registry.example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 = registry.example.com | |
#The protocol for accessing the UI and token/notification service, by default it is http. | |
#It can be set to https if ssl is enabled on nginx. | |
ui_url_protocol = https | |
#The path of cert and key files for nginx, they are applied only the protocol is set to https | |
ssl_cert = /etc/letsencrypt/live/registry.example.com/fullchain.pem | |
ssl_cert_key = /etc/letsencrypt/live/registry.example.com/privkey.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment