mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-07 05:37:00 +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 = configparser.ConfigParser()
|
||||||
sslConfig.read_file(open('./ssl-tls.ini', 'r'))
|
sslConfig.read_file(open('./ssl-tls.ini', 'r'))
|
||||||
if sslConfig.has_section('SSL/TLS'):
|
if sslConfig.has_section('SSL/TLS'):
|
||||||
cert = sslConfig.get('SSL', 'certificate_path')
|
cert = sslConfig.get('SSL/TLS', 'certificate_path')
|
||||||
pem = sslConfig.get('SSL', 'private_key_path')
|
pem = sslConfig.get('SSL/TLS', 'private_key_path')
|
||||||
if cert and pem and len(cert) > 0 and len(pem) > 0:
|
if cert and pem and len(cert) > 0 and len(pem) > 0:
|
||||||
certfile = cert
|
certfile = cert
|
||||||
keyfile = pem
|
keyfile = pem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user