Commit 999c4888fd3d3d83c43d7b88e7060d300553e2d3
Exists in
master
and in
4 other branches
Merge pull request #4845 from mmoll/unicorn_localhost
bind unicorn listener to 127.0.0.1
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/unicorn.rb.example
| @@ -26,7 +26,7 @@ working_directory "/home/git/gitlab" # available in 0.94.0+ | @@ -26,7 +26,7 @@ working_directory "/home/git/gitlab" # available in 0.94.0+ | ||
| 26 | # listen on both a Unix domain socket and a TCP port, | 26 | # listen on both a Unix domain socket and a TCP port, |
| 27 | # we use a shorter backlog for quicker failover when busy | 27 | # we use a shorter backlog for quicker failover when busy |
| 28 | listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64 | 28 | listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 64 |
| 29 | -listen 8080, :tcp_nopush => true | 29 | +listen "127.0.0.1:8080", :tcp_nopush => true |
| 30 | 30 | ||
| 31 | # nuke workers after 30 seconds instead of 60 seconds (the default) | 31 | # nuke workers after 30 seconds instead of 60 seconds (the default) |
| 32 | timeout 30 | 32 | timeout 30 |