Skip to content

Commit f0d685e

Browse files
zundahiyuki2578
authored andcommitted
Make puma bind address configurable with BIND env var (mastodon#11326)
1 parent e3ac095 commit f0d685e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if ENV['SOCKET']
55
bind "unix://#{ENV['SOCKET']}"
66
else
7-
bind "tcp://127.0.0.1:#{ENV.fetch('PORT', 3000)}"
7+
bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}"
88
end
99

1010
environment ENV.fetch('RAILS_ENV') { 'development' }

0 commit comments

Comments
 (0)