summaryrefslogtreecommitdiff
path: root/config/initializers/trusted_proxies.rb
blob: d256a16d42b803ba6274905a3d2272c388180ae0 (plain)
1
2
3
Rails.application.config.action_dispatch.trusted_proxies = (
  [ '127.0.0.1', '::1' ] + Array(Gitlab.config.gitlab.trusted_proxies)
).map { |proxy| IPAddr.new(proxy) }