diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py index f4f26fb..fd0b332 100644 --- a/src/gunicorn.conf.py +++ b/src/gunicorn.conf.py @@ -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) diff --git a/src/wgd.sh b/src/wgd.sh index a1ad1fd..3102f14 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -27,13 +27,16 @@ else cb_config_dir=/var/lib/letsencrypt fi -dashes='------------------------------------------------------------' +dashes='---------------------------------------------------------------------------------' equals='============================================================' helpMsg="[WGDashboard] Please check ./log/install.txt for more details. For further assistance, please open a ticket on https://github.com/donaldzou/WGDashboard/issues/new/choose, I'm more than happy to help :)" +print_header(){ + printf "=================================================================================\n" + printf "+ by Donald Zou - https://github.com/donaldzou +\n" + printf "=================================================================================\n" +} + help () { - printf "=================================================================================\n" - printf "+ by Donald Zou - https://github.com/donaldzou +\n" - printf "=================================================================================\n" printf "| Usage: ./wgd.sh