mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-06 09:17:33 +02:00
20 lines
749 B
Python
20 lines
749 B
Python
|
import os
|
||
|
|
||
|
## Const
|
||
|
DEFAULT_UID = 10000
|
||
|
DEFAULT_GID = 10000
|
||
|
|
||
|
## Global variable
|
||
|
base_dir = '/harbor_make'
|
||
|
templates_dir = "/usr/src/app/templates"
|
||
|
config_dir = os.path.join(base_dir, "common/config")
|
||
|
config_file_path = os.path.join(base_dir, 'harbor.yml')
|
||
|
|
||
|
private_key_pem_template = os.path.join(templates_dir, "core", "private_key.pem")
|
||
|
root_cert_path_template = os.path.join(templates_dir, "registry", "root.crt")
|
||
|
|
||
|
cert_dir = os.path.join(config_dir, "nginx", "cert")
|
||
|
core_cert_dir = os.path.join(config_dir, "core", "certificates")
|
||
|
private_key_pem = os.path.join(config_dir, "core", "private_key.pem")
|
||
|
root_crt = os.path.join(config_dir, "registry", "root.crt")
|
||
|
registry_custom_ca_bundle_config = os.path.join(config_dir, "custom-ca-bundle.crt")
|