mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Update gunicorn.conf.py
This commit is contained in:
parent
f425156cad
commit
c47b0c9741
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user