mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
d55f55aeb9
Signed-off-by: Ziming Zhang <zziming@vmware.com>
60 lines
1.5 KiB
Django/Jinja
60 lines
1.5 KiB
Django/Jinja
## Settings should be set
|
|
{%if internal_tls.enabled %}
|
|
PORT=9443
|
|
TLS_CERT=/etc/harbor/ssl/chartmuseum.crt
|
|
TLS_KEY=/etc/harbor/ssl/chartmuseum.key
|
|
# Uncomment if need mTLS
|
|
# TLS_CA_CERT=/etc/harbor/ssl/harbor_internal_ca.crt
|
|
{% else %}
|
|
PORT=9999
|
|
{% endif %}
|
|
|
|
# Only support redis now. If redis is setup, then enable cache
|
|
CACHE={{cache_store}}
|
|
{% if cache_redis_mastername %}
|
|
CACHE_REDIS_ADDR={{cache_redis_addr}}
|
|
CACHE_REDIS_MASTERNAME={{cache_redis_mastername}}
|
|
CACHE_REDIS_PASSWORD={{cache_redis_password}}
|
|
CACHE_REDIS_DB={{cache_redis_db_index}}
|
|
{% else %}
|
|
CACHE_REDIS_ADDR={{cache_redis_addr}}
|
|
CACHE_REDIS_PASSWORD={{cache_redis_password}}
|
|
CACHE_REDIS_DB={{cache_redis_db_index}}
|
|
{% endif %}
|
|
|
|
# Credential for internal communication
|
|
BASIC_AUTH_USER=chart_controller
|
|
BASIC_AUTH_PASS={{core_secret}}
|
|
|
|
# Multiple tenants
|
|
# Must be set with 1 to support project namespace
|
|
DEPTH=1
|
|
|
|
# Backend storage driver: e.g. "local", "amazon", "google" etc.
|
|
STORAGE={{storage_driver}}
|
|
{% if storage_driver == "amazon" %}
|
|
AWS_SDK_LOAD_CONFIG=1
|
|
{% endif %}
|
|
# Storage driver settings
|
|
{{all_storage_driver_configs}}
|
|
## Settings with default values. Just put here for future changes
|
|
DEBUG=false
|
|
LOG_JSON=true
|
|
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
|
|
CONTEXT_PATH=
|
|
INDEX_LIMIT=0
|
|
MAX_STORAGE_OBJECTS=0
|
|
MAX_UPLOAD_SIZE=20971520
|
|
CHART_POST_FORM_FIELD_NAME=chart
|
|
PROV_POST_FORM_FIELD_NAME=prov
|
|
STORAGE_TIMESTAMP_TOLERANCE=1s
|