From: M Somerville Date: Sat, 25 Aug 2018 19:24:20 +0000 (+0100) Subject: Default puma to running on localhost only. (#8429) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=2a59c6a5e7ea1794232a12a3d0b46b24d8a9c858;p=mastodon.git Default puma to running on localhost only. (#8429) --- diff --git a/config/puma.rb b/config/puma.rb index 0397b8920..d31ae40c8 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -4,7 +4,8 @@ threads threads_count, threads_count if ENV['SOCKET'] then bind 'unix://' + ENV['SOCKET'] else - port ENV.fetch('PORT') { 3000 } + port_num = ENV.fetch('PORT') { 3000 } + bind "tcp://127.0.0.1:#{port_num}" end environment ENV.fetch('RAILS_ENV') { 'development' }