9ab70184e3
Without this setting your own trusted_proxies does not work.
3 lines
168 B
Ruby
3 lines
168 B
Ruby
Rails.application.config.action_dispatch.trusted_proxies = (
|
|
[ '127.0.0.1', '::1' ] + Array(Gitlab.config.gitlab.trusted_proxies)
|
|
).map { |proxy| IPAddr.new(proxy) }
|