kopia lustrzana https://github.com/piku/piku
minor cleanup
rodzic
7e115394dc
commit
9a1e8bf989
5
piku.py
5
piku.py
|
@ -476,6 +476,11 @@ def spawn_worker(app, kind, command, env, ordinal=1):
|
|||
if kind in ['wsgi','web']:
|
||||
settings.append(('log-format','%%(addr) - %%(user) [%%(ltime)] "%%(method) %%(uri) %%(proto)" %%(status) %%(size) "%%(referer)" "%%(uagent)" %%(msecs)ms'))
|
||||
|
||||
# remove unnecessary variables from the env in nginx.ini
|
||||
for k in ['NGINX_ACL']:
|
||||
if v in env:
|
||||
del env[k]
|
||||
|
||||
for k, v in env.iteritems():
|
||||
settings.append(('env', '%s=%s' % (k,v)))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue