mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 13:35:07 +01:00
Make puma bind address configurable with BIND env var (#11326)
This commit is contained in:
parent
9b1d3e4acb
commit
b4c9a860e5
@ -4,7 +4,7 @@ threads threads_count, threads_count
|
||||
if ENV['SOCKET']
|
||||
bind "unix://#{ENV['SOCKET']}"
|
||||
else
|
||||
bind "tcp://127.0.0.1:#{ENV.fetch('PORT', 3000)}"
|
||||
bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}"
|
||||
end
|
||||
|
||||
environment ENV.fetch('RAILS_ENV') { 'development' }
|
||||
|
Loading…
Reference in New Issue
Block a user