Skip to content

Instantly share code, notes, and snippets.

@mattes
Created February 12, 2021 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/0abe3dec96713341b0e83ffb209c00f9 to your computer and use it in GitHub Desktop.
Save mattes/0abe3dec96713341b0e83ffb209c00f9 to your computer and use it in GitHub Desktop.
# 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