mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Update the path of server.key and server.crt
change the path of cert key paris to prevent futrue issues. Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
3dfebed98e
commit
cd9932db23
@ -256,8 +256,8 @@ services:
|
||||
volumes:
|
||||
- ./common/config/nginx:/etc/nginx:z
|
||||
{% if protocol == 'https' %}
|
||||
- {{cert_key_path}}:/etc/nginx/cert/server.key:z
|
||||
- {{cert_path}}:/etc/nginx/cert/server.crt:z
|
||||
- {{cert_key_path}}:/etc/cert/server.key:z
|
||||
- {{cert_path}}:/etc/cert/server.crt:z
|
||||
{% endif %}
|
||||
networks:
|
||||
- harbor
|
||||
|
@ -7,8 +7,8 @@ from functools import wraps
|
||||
from .misc import mark_file
|
||||
from .misc import generate_random_string
|
||||
|
||||
SSL_CERT_PATH = os.path.join("/etc/nginx/cert", "server.crt")
|
||||
SSL_CERT_KEY_PATH = os.path.join("/etc/nginx/cert", "server.key")
|
||||
SSL_CERT_PATH = os.path.join("/etc/cert", "server.crt")
|
||||
SSL_CERT_KEY_PATH = os.path.join("/etc/cert", "server.key")
|
||||
|
||||
secret_keys_dir = '/secret/keys'
|
||||
|
||||
|
@ -13,9 +13,9 @@ nginx_https_conf_template = os.path.join(templates_dir, "nginx", "nginx.https.co
|
||||
nginx_http_conf_template = os.path.join(templates_dir, "nginx", "nginx.http.conf.jinja")
|
||||
nginx_template_ext_dir = os.path.join(templates_dir, 'nginx', 'ext')
|
||||
|
||||
cert_dir = Path(os.path.join(config_dir, "nginx", "cert"))
|
||||
ssl_cert_key = Path(os.path.join(config_dir, "nginx", "cert", 'server.key'))
|
||||
ssl_cert_cert = Path(os.path.join(config_dir, "nginx", "cert", 'server.crt'))
|
||||
cert_dir = Path(os.path.join(config_dir, "cert"))
|
||||
ssl_cert_key = Path(os.path.join(cert_dir, 'server.key'))
|
||||
ssl_cert_cert = Path(os.path.join(cert_dir, 'server.crt'))
|
||||
|
||||
CUSTOM_NGINX_LOCATION_FILE_PATTERN_HTTPS = 'harbor.https.*.conf'
|
||||
CUSTOM_NGINX_LOCATION_FILE_PATTERN_HTTP = 'harbor.http.*.conf'
|
||||
|
Loading…
Reference in New Issue
Block a user