From c47b0c974122d71cf224ea519e92b1943792d982 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 12 Dec 2024 18:29:11 +0800 Subject: [PATCH] Update gunicorn.conf.py --- src/gunicorn.conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py index 6b4c9ad..a9278d8 100644 --- a/src/gunicorn.conf.py +++ b/src/gunicorn.conf.py @@ -26,8 +26,8 @@ if os.path.exists("./ssl-tls.ini"): sslConfig = configparser.ConfigParser() 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') + cert = sslConfig.get('SSL/TLS', 'certificate_path') + pem = sslConfig.get('SSL/TLS', 'private_key_path') if cert and pem and len(cert) > 0 and len(pem) > 0: certfile = cert keyfile = pem