From: Lorin Hochstein Date: Tue, 3 Jan 2017 05:50:28 +0000 (-0800) Subject: Use unix domain socket instead of tcp port X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=c60f0adf9b6c0346bb4009194c07cc88e496024f;p=ansiblebook.git Use unix domain socket instead of tcp port --- diff --git a/ch06/playbooks/templates/nginx.conf.j2 b/ch06/playbooks/templates/nginx.conf.j2 index d729654..b58d5a8 100644 --- a/ch06/playbooks/templates/nginx.conf.j2 +++ b/ch06/playbooks/templates/nginx.conf.j2 @@ -1,5 +1,5 @@ upstream {{ proj_name }} { - server 127.0.0.1:{{ gunicorn_port }}; + server unix:{{ proj_path }}/gunicorn.sock fail_timeout=0; } server {