mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-03 14:37:44 +01:00
Add chart absolute url item in config
Add a config item to enable and disalbe chart_url Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
cd6c5a9f10
commit
3022b617f2
@ -64,6 +64,9 @@ jobservice:
|
||||
# Maximum number of job workers in job service
|
||||
max_job_workers: 10
|
||||
|
||||
chart:
|
||||
absolute_url: disabled
|
||||
|
||||
# Log configurations
|
||||
log:
|
||||
# options are debug, info, warn, error
|
||||
|
@ -28,7 +28,11 @@ DISABLE_METRICS=false
|
||||
DISABLE_API=false
|
||||
DISABLE_STATEFILES=false
|
||||
ALLOW_OVERWRITE=true
|
||||
{% if chart_absolute_url %}
|
||||
CHART_URL={{public_url}}/chartrepo
|
||||
{% else %}
|
||||
CHART_URL=
|
||||
{% endif %}
|
||||
AUTH_ANONYMOUS_GET=false
|
||||
TLS_CERT=
|
||||
TLS_KEY=
|
||||
|
@ -100,4 +100,5 @@ def prepare_chartmuseum(config_dict):
|
||||
core_secret=config_dict['core_secret'],
|
||||
storage_driver=storage_driver,
|
||||
all_storage_driver_configs=all_storage_provider_configs,
|
||||
public_url=config_dict['public_url'])
|
||||
public_url=config_dict['public_url'],
|
||||
chart_absolute_url=config_dict['chart_absolute_url'])
|
@ -170,6 +170,10 @@ def parse_yaml_config(config_file_path):
|
||||
config_dict['clair_https_proxy'] = clair_configs.get('https_proxy') or ''
|
||||
config_dict['clair_no_proxy'] = clair_configs.get('no_proxy') or '127.0.0.1,localhost,core,registry'
|
||||
|
||||
# Chart configs
|
||||
chart_configs = configs.get("chart") or {}
|
||||
config_dict['chart_absolute_url'] = chart_configs.get('absolute_url') or ''
|
||||
|
||||
# jobservice config
|
||||
js_config = configs.get('jobservice') or {}
|
||||
config_dict['max_job_workers'] = js_config["max_job_workers"]
|
||||
|
Loading…
Reference in New Issue
Block a user