mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 07:46:18 +00:00
Update wgd.sh and removed SSL-TLS from Gunicorn
This commit is contained in:
@@ -21,20 +21,6 @@ capture_output = True
|
||||
errorlog = f"./log/error_{date}.log"
|
||||
pythonpath = "., ./modules"
|
||||
|
||||
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/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
|
||||
print(f"[Gunicorn][HTTPS] Found certificate and private key file", flush=True)
|
||||
print(f"[Gunicorn][HTTPS] Certificate: {certfile}", flush=True)
|
||||
print(f"[Gunicorn][HTTPS] Private Key: {keyfile}", flush=True)
|
||||
|
||||
|
||||
print(f"[Gunicorn] WGDashboard w/ Gunicorn will be running on {bind}", flush=True)
|
||||
print(f"[Gunicorn] Access log file is at {accesslog}", flush=True)
|
||||
print(f"[Gunicorn] Error log file is at {errorlog}", flush=True)
|
||||
|
Reference in New Issue
Block a user