Update wgd.sh and removed SSL-TLS from Gunicorn

This commit is contained in:
Donald Zou
2025-04-22 18:42:08 +08:00
parent 417fa437b7
commit 5c308d757f
2 changed files with 33 additions and 53 deletions

View File

@@ -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)