Skip to content
This repository was archived by the owner on Jun 7, 2019. It is now read-only.

Commit 7deb97c

Browse files
author
fzhou
committed
returned to using unix sockets
1 parent 9ea5d78 commit 7deb97c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/gunicorn.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ def when_ready(server):
44
open('/tmp/app-initialized', 'w').close()
55

66

7-
bind = '127.0.0.1:5000'
7+
bind = 'unix:///tmp/nginx.socket'

config/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ http {
2929
upstream app_server {
3030
ip_hash;
3131

32-
server 127.0.0.1:5000;
32+
server unix:/tmp/nginx.socket fail_timeout=0;
3333
}
3434

3535
map $http_upgrade $connection_upgrade {

0 commit comments

Comments
 (0)