Added support for uWSGI http-socket option

pull/205/head
Lars Wiegman 2021-09-01 20:27:39 +02:00
rodzic 3159127df0
commit 7850545c7e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -990,6 +990,7 @@ def spawn_worker(app, kind, command, env, ordinal=1):
settings.extend([
('http', '{BIND_ADDRESS:s}:{PORT:s}'.format(**env)),
('http-use-socket', '{BIND_ADDRESS:s}:{PORT:s}'.format(**env)),
('http-socket', '{BIND_ADDRESS:s}:{PORT:s}'.format(**env)),
])
elif kind == 'web':
echo("-----> nginx will talk to the 'web' process via {BIND_ADDRESS:s}:{PORT:s}".format(**env), fg='yellow')