about summary refs log tree commit diff
path: root/config/puma.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-15 05:56:35 +0200
committerGitHub <noreply@github.com>2019-07-15 05:56:35 +0200
commite7353c47dbc200536dedb7beea37d60c6ea6fa2f (patch)
tree6b6024ded62ff30d27c3333131804c180c4a02a0 /config/puma.rb
parent2f813b7ea10e0323f76d30bf2d6d1aaa87674bce (diff)
Change default interface of web and streaming from 0.0.0.0 to 127.0.0.1 (#11302)
Diffstat (limited to 'config/puma.rb')
-rw-r--r--config/puma.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/puma.rb b/config/puma.rb
index 1afdb1c6d..25a5534b2 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -2,9 +2,9 @@ threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
 threads threads_count, threads_count
 
 if ENV['SOCKET']
-  bind 'unix://' + ENV['SOCKET']
+  bind "unix://#{ENV['SOCKET']}"
 else
-  port ENV.fetch('PORT') { 3000 }
+  bind "tcp://127.0.0.1:#{ENV.fetch('PORT', 3000)}"
 end
 
 environment ENV.fetch('RAILS_ENV') { 'development' }