mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Merge pull request #12539 from ninjadq/core_config_port
Fix: beego app config port hardcode
This commit is contained in:
commit
a2112bfa40
@ -1,6 +1,10 @@
|
|||||||
appname = Harbor
|
appname = Harbor
|
||||||
runmode = dev
|
runmode = prod
|
||||||
enablegzip = true
|
enablegzip = true
|
||||||
|
|
||||||
[dev]
|
[prod]
|
||||||
httpport = 8080
|
{% if internal_tls.enabled %}
|
||||||
|
httpport = {{8443}}
|
||||||
|
{% else %}
|
||||||
|
httpport = {{8080}}
|
||||||
|
{% endif %}
|
||||||
|
@ -5,7 +5,6 @@ SYNC_QUOTA=true
|
|||||||
CHART_CACHE_DRIVER={{chart_cache_driver}}
|
CHART_CACHE_DRIVER={{chart_cache_driver}}
|
||||||
_REDIS_URL_REG={{redis_url_reg}}
|
_REDIS_URL_REG={{redis_url_reg}}
|
||||||
|
|
||||||
PORT=8080
|
|
||||||
LOG_LEVEL={{log_level}}
|
LOG_LEVEL={{log_level}}
|
||||||
EXT_ENDPOINT={{public_url}}
|
EXT_ENDPOINT={{public_url}}
|
||||||
DATABASE_TYPE=postgresql
|
DATABASE_TYPE=postgresql
|
||||||
@ -48,8 +47,11 @@ HTTPS_PROXY={{core_https_proxy}}
|
|||||||
NO_PROXY={{core_no_proxy}}
|
NO_PROXY={{core_no_proxy}}
|
||||||
|
|
||||||
{%if internal_tls.enabled %}
|
{%if internal_tls.enabled %}
|
||||||
|
PORT=8443
|
||||||
INTERNAL_TLS_ENABLED=true
|
INTERNAL_TLS_ENABLED=true
|
||||||
INTERNAL_TLS_KEY_PATH=/etc/harbor/ssl/core.key
|
INTERNAL_TLS_KEY_PATH=/etc/harbor/ssl/core.key
|
||||||
INTERNAL_TLS_CERT_PATH=/etc/harbor/ssl/core.crt
|
INTERNAL_TLS_CERT_PATH=/etc/harbor/ssl/core.crt
|
||||||
INTERNAL_TLS_TRUST_CA_PATH=/harbor_cust_cert/harbor_internal_ca.crt
|
INTERNAL_TLS_TRUST_CA_PATH=/harbor_cust_cert/harbor_internal_ca.crt
|
||||||
|
{% else %}
|
||||||
|
PORT=8080
|
||||||
{% endif %}
|
{% endif %}
|
@ -39,7 +39,8 @@ def prepare_core(config_dict, with_notary, with_clair, with_trivy, with_chartmus
|
|||||||
core_conf_template_path,
|
core_conf_template_path,
|
||||||
core_conf,
|
core_conf,
|
||||||
uid=DEFAULT_UID,
|
uid=DEFAULT_UID,
|
||||||
gid=DEFAULT_GID)
|
gid=DEFAULT_GID,
|
||||||
|
**config_dict)
|
||||||
|
|
||||||
|
|
||||||
def copy_core_config(core_templates_path, core_config_path):
|
def copy_core_config(core_templates_path, core_config_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user