From 85d0c684530ea736c7fb1da0bc9d3abbc7a185b8 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 23 Feb 2024 15:59:01 +1100 Subject: [PATCH] fix: nginx stuff --- sites.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sites.py b/sites.py index 3670e93..511579e 100644 --- a/sites.py +++ b/sites.py @@ -250,9 +250,7 @@ def write_nginx_conf(site): add_header Cache-Control 'must-revalidate'; add_header Content-Type text/plain; }} - listen 443 ssl; - ssl_certificate /root/site-manager/certs/{alt}/cert.crt; - ssl_certificate_key /root/site-manager/certs/{alt}/cert.key; + {ssl} }} ''' with open(f'/etc/nginx/sites-enabled/{id}.conf', 'w') as file: @@ -285,4 +283,5 @@ def is_icann(domain): # Remove any comments tlds = [tld for tld in tlds if not tld.startswith('#')] if domain.split('.')[-1].upper() in tlds: - return True \ No newline at end of file + return True + return False \ No newline at end of file