Skip to content

Instantly share code, notes, and snippets.

@mattes
Created Feb 12, 2021
Embed
What would you like to do?
# trust google cloud load balancer ips
# https://cloud.google.com/load-balancing/docs/https#x-forwarded-for_header
config.action_dispatch.trusted_proxies = %w(130.211.0.0/22 35.191.0.0/16).map { |proxy| IPAddr.new(proxy) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment