2016-04-04 06:04:02 +00:00
|
|
|
## Configuration file of Harbor
|
|
|
|
|
2016-04-04 03:29:35 +00:00
|
|
|
#The IP address or hostname to access admin UI and registry service.
|
2016-04-04 03:20:52 +00:00
|
|
|
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
|
2016-04-20 11:40:19 +00:00
|
|
|
hostname = reg.mydomain.com
|
2016-04-04 06:04:02 +00:00
|
|
|
|
2016-04-04 03:29:35 +00:00
|
|
|
#The protocol for accessing the UI and token/notification service, by default it is http.
|
2016-04-04 06:13:39 +00:00
|
|
|
#It can be set to https if ssl is enabled on nginx.
|
2016-04-20 11:40:19 +00:00
|
|
|
ui_url_protocol = http
|
2016-04-04 06:04:02 +00:00
|
|
|
|
2016-04-04 06:13:39 +00:00
|
|
|
#Email account settings for sending out password resetting emails.
|
2016-04-20 11:40:19 +00:00
|
|
|
email_server = smtp.mydomain.com
|
|
|
|
email_server_port = 25
|
|
|
|
email_username = sample_admin@mydomain.com
|
|
|
|
email_password = abc
|
|
|
|
email_from = admin <sample_admin@mydomain.com>
|
2016-04-04 06:04:02 +00:00
|
|
|
|
2016-04-04 06:13:39 +00:00
|
|
|
##The password of Harbor admin, change this before any production use.
|
2016-04-20 11:40:19 +00:00
|
|
|
harbor_admin_password = Harbor12345
|
2016-04-04 06:04:02 +00:00
|
|
|
|
2016-04-04 03:29:35 +00:00
|
|
|
##By default the auth mode is db_auth, i.e. the credentials are stored in a local database.
|
|
|
|
#Set it to ldap_auth if you want to verify a user's credentials against an LDAP server.
|
2016-04-20 11:40:19 +00:00
|
|
|
auth_mode = db_auth
|
2016-04-04 06:04:02 +00:00
|
|
|
|
2016-04-04 06:13:39 +00:00
|
|
|
#The url for an ldap endpoint.
|
2016-04-20 11:40:19 +00:00
|
|
|
ldap_url = ldaps://ldap.mydomain.com
|
2016-04-04 06:04:02 +00:00
|
|
|
|
|
|
|
#The basedn template to look up a user in LDAP and verify the user's password.
|
2016-04-20 11:40:19 +00:00
|
|
|
ldap_basedn = uid=%s,ou=people,dc=mydomain,dc=com
|
2016-04-04 06:04:02 +00:00
|
|
|
|
|
|
|
#The password for the root user of mysql db, change this before any production use.
|
2016-04-20 11:40:19 +00:00
|
|
|
db_password = root123
|
2016-04-08 09:04:47 +00:00
|
|
|
|
|
|
|
#Turn on or off the self-registration feature
|
2016-04-20 11:40:19 +00:00
|
|
|
self_registration = on
|
2016-04-19 17:37:07 +00:00
|
|
|
|
2016-04-20 11:40:19 +00:00
|
|
|
#Turn on or off the customize your certicate
|
|
|
|
customize_crt = on
|
2016-04-19 17:37:07 +00:00
|
|
|
|
2016-04-20 11:40:19 +00:00
|
|
|
#fill in your certicate message
|
|
|
|
crt_countryname = CN
|
|
|
|
crt_state = State
|
|
|
|
crt_name = name
|
|
|
|
crt_organizationname = organization name
|
|
|
|
crt_organizationalunitname = organizational unit name
|
2016-02-22 02:00:42 +00:00
|
|
|
#####
|