0
0
Fork 0

Change default interface of web and streaming from 0.0.0.0 to 127.0.0.1 (#11302)

This commit is contained in:
Eugen Rochko 2019-07-15 05:56:35 +02:00 committed by GitHub
parent 2f813b7ea1
commit e7353c47db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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' }