You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/08/04 18:36:05 UTC

[incubator-dlab] 02/02: [DLAB-1594]: added different nginx config path for edge node

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1594-2
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 467703f078efbc2711c7e34ed5e4a7d3c911b79d
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Aug 4 21:35:45 2020 +0300

    [DLAB-1594]: added different nginx config path for edge node
---
 infrastructure-provisioning/src/general/lib/os/debian/common_lib.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index deedcbf..49e8636 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -218,7 +218,10 @@ def configure_nginx_LE(domain_name, node):
         cert_key_line = '    ssl_certificate_key /etc/letsencrypt/live/{}.{}/privkey.pem;'.format(node, domain_name)
         certbot_service = 'ExecStart = /usr/bin/certbot -q renew --pre-hook "service nginx stop" --post-hook "service nginx start"'
         certbot_service_path = '/lib/systemd/system/certbot.service'
-        nginx_config_path = '/etc/nginx/conf.d/nginx_proxy.conf'
+        if node == 'ssn':
+            nginx_config_path = '/etc/nginx/conf.d/nginx_proxy.conf'
+        else:
+            nginx_config_path = '/etc/nginx/conf.d/proxy.conf'
         find_replace_line(nginx_config_path,'    server_name  ' ,server_name_line)
         find_replace_line(nginx_config_path,'    ssl_certificate ' ,cert_path_line)
         find_replace_line(nginx_config_path,'    ssl_certificate_key ' ,cert_key_line)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org