mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:09:18 +08:00
Revert "DEV: Bind to ipv6 loopback address in addition to ipv4 (#8544)"
This reverts commit 1002bf62e5
.
This commit is contained in:
parent
aa73df768a
commit
7b6bafc651
|
@ -15,13 +15,7 @@ worker_processes (ENV["UNICORN_WORKERS"] || 3).to_i
|
|||
working_directory discourse_path
|
||||
|
||||
# listen "#{discourse_path}/tmp/sockets/unicorn.sock"
|
||||
port = (ENV["UNICORN_PORT"] || 3000).to_i
|
||||
if ENV["UNICORN_BIND_ALL"]
|
||||
listen port
|
||||
else
|
||||
listen "127.0.0.1:#{port}"
|
||||
listen "[::1]:#{port}"
|
||||
end
|
||||
listen "#{(ENV["UNICORN_BIND_ALL"] ? "" : "127.0.0.1:")}#{(ENV["UNICORN_PORT"] || 3000).to_i}"
|
||||
|
||||
if !File.exist?("#{discourse_path}/tmp/pids")
|
||||
FileUtils.mkdir_p("#{discourse_path}/tmp/pids")
|
||||
|
|
Loading…
Reference in New Issue
Block a user