debian-mirror-gitlab/config/initializers/trusted_proxies.rb
2016-06-02 11:05:42 +05:30

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) }