You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just got this setup in our environment and it's solving our needs perfectly!
I wanted to share a bit of setup that might be useful to others, but didn't want to open a PR until chatting about where it should go.
The situation: when running apps on Google Cloud, their load balancers/ingresses will provide client geocode information to your application so you don't have to do it yourself.
Hey @mroach, thanks for sharing! Just added a section on load balancer geocoding to the readme with a link to this example (this seems like a good place for it).
I just got this setup in our environment and it's solving our needs perfectly!
I wanted to share a bit of setup that might be useful to others, but didn't want to open a PR until chatting about where it should go.
The situation: when running apps on Google Cloud, their load balancers/ingresses will provide client geocode information to your application so you don't have to do it yourself.
config/initializers/authtrail.rb
When using Kubernetes, you get these headers by creating a
BackendConfig
and wiring it up to yourService
See https://cloud.google.com/load-balancing/docs/custom-headers#variables
Google puts the country code in the 'region' field, probably because of Hong Kong, Macau, Taiwan, Kosovo, etc...
The text was updated successfully, but these errors were encountered: