You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
402 B
Python
16 lines
402 B
Python
7 years ago
|
#!/usr/bin/python
|
||
|
|
||
|
import os
|
||
7 years ago
|
import subprocess
|
||
|
|
||
7 years ago
|
|
||
|
# Actual startup script
|
||
7 years ago
|
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"])
|
||
|
|
||
|
subprocess.call(["/config.py"])
|
||
7 years ago
|
os.execv("/usr/sbin/nginx", ["nginx", "-g", "daemon off;"])
|