1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-23 22:04:47 +02:00

Use a predefined dhparam.pem, This fixes issue #322

This commit is contained in:
Greg Fitzgerald
2017-11-30 19:38:26 -05:00
committed by kaiyou
parent 7a9d2c9725
commit f1ad2cf4d0
3 changed files with 15 additions and 4 deletions

View File

@@ -7,10 +7,6 @@ import subprocess
if os.path.exists("/var/log/nginx.pid"):
os.remove("/var/log/nginx.pid")
# Actual startup script
if not os.path.exists("/certs/dhparam.pem") and os.environ["TLS_FLAVOR"] != "notls":
os.system("openssl dhparam -out /certs/dhparam.pem 4096")
if os.environ["TLS_FLAVOR"] == "letsencrypt":
subprocess.Popen(["/letsencrypt.py"])