From f425156cadbcd52bdc0ab64dc7da89bc8c86040b Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 12 Dec 2024 18:23:42 +0800 Subject: [PATCH] Sync with HTTPS build --- src/gunicorn.conf.py | 6 +++--- src/wgd.sh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py index 7404eda..6b4c9ad 100644 --- a/src/gunicorn.conf.py +++ b/src/gunicorn.conf.py @@ -22,10 +22,10 @@ log_level = "debug" capture_output = True errorlog = f"./log/error_{date}.log" -if os.path.exists("./ssl.ini"): +if os.path.exists("./ssl-tls.ini"): sslConfig = configparser.ConfigParser() - sslConfig.read_file(open('./ssl.ini', 'r')) - if sslConfig.has_section('SSL'): + sslConfig.read_file(open('./ssl-tls.ini', 'r')) + if sslConfig.has_section('SSL/TLS'): cert = sslConfig.get('SSL', 'certificate_path') pem = sslConfig.get('SSL', 'private_key_path') if cert and pem and len(cert) > 0 and len(pem) > 0: diff --git a/src/wgd.sh b/src/wgd.sh index 878a81b..2ecb2aa 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -341,12 +341,12 @@ install_wgd(){ else printf "[WGDashboard] %s Found existing ./db folder\n" "$heavy_checkmark" fi - if [ ! -f "ssl.ini" ] + if [ ! -f "ssl-tls.ini" ] then - printf "[SSL]\ncertificate_path = \nprivate_key_path = \n" >> ssl.ini - printf "[WGDashboard] %s Created ssl.ini\n" "$heavy_checkmark" + printf "[SSL/TLS]\ncertificate_path = \nprivate_key_path = \n" >> ssl-tls.ini + printf "[WGDashboard] %s Created ssl-tls.ini\n" "$heavy_checkmark" else - printf "[WGDashboard] %s Found existing ssl.ini\n" "$heavy_checkmark" + printf "[WGDashboard] %s Found existing ssl-tls.ini\n" "$heavy_checkmark" fi printf "[WGDashboard] %s WGDashboard installed successfully!\n" "$heavy_checkmark" printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n"