mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 16:25:16 +01:00
ed6438cf69
All internal service and known internal hostname shuold add to no_proxy by default Signed-off-by: DQ <dengq@vmware.com>
57 lines
1.1 KiB
Python
57 lines
1.1 KiB
Python
import os
|
|
from pathlib import Path
|
|
|
|
## Const
|
|
DEFAULT_UID = 10000
|
|
DEFAULT_GID = 10000
|
|
|
|
PG_UID = 999
|
|
PG_GID = 999
|
|
|
|
REDIS_UID = 999
|
|
REDIS_GID = 999
|
|
|
|
## Global variable
|
|
host_root_dir = '/hostfs'
|
|
|
|
base_dir = '/harbor_make'
|
|
templates_dir = "/usr/src/app/templates"
|
|
config_dir = '/config'
|
|
data_dir = '/data'
|
|
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")
|
|
|
|
INTERNAL_NO_PROXY_DN = {
|
|
'127.0.0.1',
|
|
'localhost',
|
|
'.local',
|
|
'.internal',
|
|
'log',
|
|
'db',
|
|
'redis',
|
|
'nginx',
|
|
'core',
|
|
'portal',
|
|
'postgresql',
|
|
'jobservice',
|
|
'registry',
|
|
'registryctl',
|
|
'clair',
|
|
'chartmuseum',
|
|
'notary-server',
|
|
'notary-signer',
|
|
'clair-adapter'
|
|
} |