Better (more secure) config.

see #75
This commit is contained in:
Antoine Nguyen
2016-12-07 16:57:12 +01:00
parent 55cacdc1ed
commit 84ad8e80b9
5 changed files with 15 additions and 5 deletions

View File

@@ -53,3 +53,7 @@ class Nginx(base.Installer):
group = "uwsgi"
user = "nginx"
system.add_user_to_group(user, group)
if not os.path.exists("{}/dhparam.pem".format(self.config_dir)):
cmd = "openssl dhparam -out dhparam.pem 4096"
utils.exec_cmd(cmd, cwd=self.config_dir)