1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

use php5-fpm rather than our own custom launcher script for PHP+FastCGI

This commit is contained in:
Joshua Tauberer
2014-08-12 11:00:54 +00:00
parent 1312b0254b
commit 0eceb2012f
7 changed files with 28 additions and 151 deletions

View File

@@ -40,7 +40,9 @@ def get_web_domains(env):
def do_web_update(env):
# Build an nginx configuration file.
nginx_conf = ""
nginx_conf = open(os.path.join(os.path.dirname(__file__), "../conf/nginx-top.conf")).read()
# Add configuration for each web domain.
template = open(os.path.join(os.path.dirname(__file__), "../conf/nginx.conf")).read()
for domain in get_web_domains(env):
nginx_conf += make_domain_config(domain, template, env)