mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
66 lines
2.3 KiB
INI
66 lines
2.3 KiB
INI
## Configuration file of Harbor
|
|
|
|
#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 = reg.mydomain.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 = http
|
|
|
|
#Email account settings for sending out password resetting emails.
|
|
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>
|
|
email_ssl = false
|
|
|
|
##The password of Harbor admin, change this before any production use.
|
|
harbor_admin_password = Harbor12345
|
|
|
|
##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.
|
|
auth_mode = db_auth
|
|
|
|
#The url for an ldap endpoint.
|
|
ldap_url = ldaps://ldap.mydomain.com
|
|
|
|
#The basedn template to look up a user in LDAP and verify the user's password.
|
|
#For AD server, uses this template:
|
|
#ldap_basedn = CN=%s,OU=Dept1,DC=mydomain,DC=com
|
|
ldap_basedn = uid=%s,ou=people,dc=mydomain,dc=com
|
|
|
|
#The password for the root user of mysql db, change this before any production use.
|
|
db_password = root123
|
|
|
|
#Turn on or off the self-registration feature
|
|
self_registration = on
|
|
|
|
#Determine whether the UI should use compressed js files.
|
|
#For production, set it to on. For development, set it to off.
|
|
use_compressed_js = on
|
|
|
|
#Maximum number of job workers in job service
|
|
max_job_workers = 3
|
|
|
|
#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.
|
|
verify_remote_cert = on
|
|
|
|
#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.
|
|
customize_crt = on
|
|
|
|
#Information of your organization for certificate
|
|
crt_country = CN
|
|
crt_state = State
|
|
crt_location = CN
|
|
crt_organization = organization
|
|
crt_organizationalunit = organizational unit
|
|
crt_commonname = example.com
|
|
crt_email = example@example.com
|
|
#####
|