BigW Consortium Gitlab

trusted_proxies.rb 168 Bytes
Newer Older
1
Rails.application.config.action_dispatch.trusted_proxies = (
2
  [ '127.0.0.1', '::1' ] + Array(Gitlab.config.gitlab.trusted_proxies)
3
).map { |proxy| IPAddr.new(proxy) }