mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
e1f95cade0
fix: support customize cache db for business Support to configure the customized redis db for cache layer and other misc business for core, by default the behavior is same with previous(stored in db 0). Signed-off-by: chlins <chenyuzh@vmware.com>
59 lines
2.1 KiB
Django/Jinja
59 lines
2.1 KiB
Django/Jinja
CORE_SECRET={{core_secret}}
|
|
REGISTRY_URL={{registry_url}}
|
|
JOBSERVICE_SECRET={{jobservice_secret}}
|
|
CORE_URL={{core_url}}
|
|
REGISTRY_CONTROLLER_URL={{registry_controller_url}}
|
|
JOBSERVICE_WEBHOOK_JOB_MAX_RETRY={{notification_webhook_job_max_retry}}
|
|
JOBSERVICE_WEBHOOK_JOB_HTTP_CLIENT_TIMEOUT={{notification_webhook_job_http_client_timeout}}
|
|
|
|
{%if internal_tls.enabled %}
|
|
INTERNAL_TLS_ENABLED=true
|
|
INTERNAL_TLS_TRUST_CA_PATH=/harbor_cust_cert/harbor_internal_ca.crt
|
|
INTERNAL_TLS_KEY_PATH=/etc/harbor/ssl/job_service.key
|
|
INTERNAL_TLS_CERT_PATH=/etc/harbor/ssl/job_service.crt
|
|
{% endif %}
|
|
{% if internal_tls.verify_client_cert %}
|
|
INTERNAL_VERIFY_CLIENT_CERT=true
|
|
{% endif %}
|
|
|
|
HTTP_PROXY={{jobservice_http_proxy}}
|
|
HTTPS_PROXY={{jobservice_https_proxy}}
|
|
NO_PROXY={{jobservice_no_proxy}}
|
|
REGISTRY_CREDENTIAL_USERNAME={{registry_username}}
|
|
REGISTRY_CREDENTIAL_PASSWORD={{registry_password}}
|
|
|
|
{% if metric.enabled %}
|
|
METRIC_NAMESPACE=harbor
|
|
METRIC_SUBSYSTEM=jobservice
|
|
{% endif %}
|
|
|
|
{% if trace.enabled %}
|
|
TRACE_ENABLED=true
|
|
TRACE_SERVICE_NAME=harbor-jobservice
|
|
TRACE_SAMPLE_RATE={{ trace.sample_rate }}
|
|
TRACE_NAMESPACE={{ trace.namespace }}
|
|
TRACE_ATTRIBUTES={{ trace.attributes | to_json | safe }}
|
|
{% if trace.jaeger.enabled %}
|
|
TRACE_JAEGER_ENDPOINT={{ trace.jaeger.endpoint if trace.jaeger.endpoint else '' }}
|
|
TRACE_JAEGER_USERNAME={{ trace.jaeger.username if trace.jaeger.username else '' }}
|
|
TRACE_JAEGER_PASSWORD={{ trace.jaeger.password if trace.jaeger.password else '' }}
|
|
TRACE_JAEGER_AGENT_HOSTNAME={{ trace.jaeger.agent_host if trace.jaeger.agent_host else '' }}
|
|
TRACE_JAEGER_AGENT_PORT={{ trace.jaeger.agent_port if trace.jaeger.agent_port else '' }}
|
|
{% endif %}
|
|
{%if trace.otel.enabled %}
|
|
TRACE_OTEL_ENDPOINT={{ trace.otel.endpoint }}
|
|
TRACE_OTEL_URL_PATH={{ trace.otel.url_path if trace.otel.url_path else '' }}
|
|
TRACE_OTEL_COMPRESSION={{ trace.otel.compression }}
|
|
TRACE_OTEL_TIMEOUT={{ trace.otel.timeout }}
|
|
TRACE_OTEL_INSECURE={{ trace.otel.insecure }}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if cache.enabled %}
|
|
_REDIS_URL_CORE={{redis_url_core}}
|
|
{% if redis_url_cache_layer %}
|
|
_REDIS_URL_CACHE_LAYER={{redis_url_cache_layer}}
|
|
{% endif %}
|
|
CACHE_ENABLED=true
|
|
CACHE_EXPIRE_HOURS={{ cache.expire_hours }}
|
|
{% endif %} |