Binding gitlab to ip address on debian part II

Hi,

in my previous post I described how I made gitlab (nginx) bind to the secondary ip address on debian.

Now I would like to know how to bind gitlab_rails to the secondary ip address (emails can only be sent by using the secondary ip address <= firewall restriction)
When starting rails, the option “-b” can be used to make rails bind to some ip address. As far as I have read, an aequivalent envrionment setting exists, e.g. “HOST” = “192.168.10.10”
(see this post)

So here is what I tried in gitlab.rb:

gitlab_rails[‘env’] = { “host” => “192.168.10.10” }
gitlab_rails[‘env’] = { “HOST” => “192.168.10.10” }

…neither of them did the trick, resulting in “NET::OpenTimeout(execution expired)” which means it could not pass the FW.

Btw.: telnet -b 192.168.10.10 smtp.example.domain 465 connects successfully.

Anyone knows ho to bind gitlab_rails to the secondary ip 192.168.10.10?