2016-04-04 08:04:02 +02:00
## Configuration file of Harbor
2016-04-04 05:29:35 +02:00
#The IP address or hostname to access admin UI and registry service.
2016-04-04 05:20:52 +02:00
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
2016-07-14 12:44:39 +02:00
hostname = reg.mydomain.com
2016-04-04 08:04:02 +02:00
2016-04-04 05:29:35 +02:00
#The protocol for accessing the UI and token/notification service, by default it is http.
2016-04-04 08:13:39 +02:00
#It can be set to https if ssl is enabled on nginx.
2016-02-22 03:00:42 +01:00
ui_url_protocol = http
2016-04-04 08:04:02 +02:00
2016-04-04 08:13:39 +02:00
#Email account settings for sending out password resetting emails.
2016-04-20 13:40:19 +02:00
email_server = smtp.mydomain.com
2016-02-22 03:00:42 +01:00
email_server_port = 25
email_username = sample_admin@mydomain.com
email_password = abc
email_from = admin <sample_admin@mydomain.com>
2016-04-21 07:03:12 +02:00
email_ssl = false
2016-04-04 08:04:02 +02:00
2016-04-04 08:13:39 +02:00
##The password of Harbor admin, change this before any production use.
2016-04-20 13:40:19 +02:00
harbor_admin_password = Harbor12345
2016-04-04 08:04:02 +02:00
2016-04-04 05:29:35 +02: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-02-22 03:00:42 +01:00
auth_mode = db_auth
2016-04-04 08:04:02 +02:00
2016-04-04 08:13:39 +02:00
#The url for an ldap endpoint.
2016-02-22 03:00:42 +01:00
ldap_url = ldaps://ldap.mydomain.com
2016-04-04 08:04:02 +02:00
2016-08-18 12:31:41 +02:00
#ldap_searchdn, set the user who has the permission to search the LDAP/AD server. If your ldap/AD server does not support anonymous search, you should configure it and ldap_search_pwd.
#ldap_searchdn = cn=admin,ou=people,dc=mydomain,dc=com
#the password of the ldap_searchdn
#ldap_search_pwd = admin
2016-04-04 08:04:02 +02:00
#The basedn template to look up a user in LDAP and verify the user's password.
2016-07-14 12:44:39 +02:00
#For AD server, uses this template:
#ldap_basedn = CN=%s,OU=Dept1,DC=mydomain,DC=com
2016-08-18 12:31:41 +02:00
ldap_basedn = ou=people,dc=mydomain,dc=com
#ldap filter, set the attribute to filter a user, you can add as many as you need, be sure the grammar is right. If needed, configure it.
#ldap_filter = objectClass=person
#the exclusive attribute to distinguish a user, it can be uid or cn or mail or email or sAMAccountName, for example: ldap_uid = uid
ldap_uid = uid
#ldap_scope, set the scope to search, 1-LDAP_SCOPE_BASE, 2-LDAP_SCOPE_ONELEVEL, 3-LDAP_SCOPE_SUBTREE, default is 3
ldap_scope = 3
2016-04-04 08:04:02 +02:00
#The password for the root user of mysql db, change this before any production use.
2016-02-22 03:00:42 +01:00
db_password = root123
2016-04-08 11:04:47 +02:00
#Turn on or off the self-registration feature
2016-03-31 12:45:26 +02:00
self_registration = on
2016-04-19 19:37:07 +02:00
2016-07-14 12:44:39 +02:00
#Determine whether the UI should use compressed js files.
#For production, set it to on. For development, set it to off.
2016-07-14 08:56:56 +02:00
use_compressed_js = on
2016-07-13 11:23:43 +02:00
2016-07-14 12:44:39 +02:00
#Maximum number of job workers in job service
2016-06-20 13:06:51 +02:00
max_job_workers = 3
2016-04-19 19:37:07 +02:00
2016-08-03 11:25:24 +02:00
#Secret key for encryption/decryption, its length has to be 16 chars
#**NOTE** if this changes, previously encrypted password will not be decrypted!
secret_key = secretkey1234567
2016-08-08 05:21:48 +02:00
#The expiration of token used by token service, default is 30 minutes
token_expiration = 30
2016-07-14 12:44:39 +02:00
#Determine whether the job service should verify the ssl cert when it connects to a remote registry.
#Set this flag to off when the remote registry uses a self-signed or untrusted certificate.
2016-06-22 12:41:56 +02:00
verify_remote_cert = on
2016-07-14 12:44:39 +02:00
#Determine whether or not to generate certificate for the registry's token.
#If the value is on, the prepare script creates new root cert and private key
#for generating token to access the registry. If the value is off, a key/certificate must
#be supplied for token generation.
2016-06-20 13:06:51 +02:00
customize_crt = on
2016-05-27 10:21:32 +02:00
2016-07-15 11:22:56 +02:00
#Information of your organization for certificate
2016-04-25 10:08:16 +02:00
crt_country = CN
2016-04-20 13:40:19 +02:00
crt_state = State
2016-04-25 10:08:16 +02:00
crt_location = CN
crt_organization = organization
crt_organizationalunit = organizational unit
crt_commonname = example.com
crt_email = example@example.com
2016-02-22 03:00:42 +01:00
#####