mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
deba378842
1. Refactor registry configs 2. cp gcs keyfile is exist Signed-off-by: Qian Deng <dengq@vmware.com>
27 lines
734 B
Python
27 lines
734 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
## Const
|
|
DEFAULT_UID = 10000
|
|
DEFAULT_GID = 10000
|
|
|
|
## Global variable
|
|
base_dir = '/harbor_make'
|
|
templates_dir = "/usr/src/app/templates"
|
|
config_dir = '/config'
|
|
|
|
secret_dir = '/secret'
|
|
secret_key_dir='/secret/keys'
|
|
|
|
old_private_key_pem_path = Path('/config/core/private_key.pem')
|
|
old_crt_path = Path('/config/registry/root.crt')
|
|
|
|
private_key_pem_path = Path('/secret/core/private_key.pem')
|
|
root_crt_path = Path('/secret/registry/root.crt')
|
|
|
|
config_file_path = '/compose_location/harbor.yml'
|
|
input_config_path = '/input/harbor.yml'
|
|
versions_file_path = Path('/usr/src/app/versions')
|
|
|
|
cert_dir = os.path.join(config_dir, "nginx", "cert")
|
|
core_cert_dir = os.path.join(config_dir, "core", "certificates") |