Re:Geolocating requests with Google Load Balancer for free
by manigandham on Tuesday April 24, 2018 @11:47AM
(#16913599)
If using the CLI, don't put the single quotes or the whole thing will become the header without a value.
[ Parent
| on HN ]
Re:Geolocating requests with Google Load Balancer for free
by vadimska on Tuesday April 24, 2018 @12:23PM
(#16913997)
I have used the CLI and the quotes worked fine for me. Here is the complete command I have used:
gcloud beta compute backend-services update app --custom-request-header 'X-Client-Geo-Location:{client_region},{client_region_subdivision},{client_city}' --custom-request-header 'X-Client-Geo-Region:{client_region_subdivision}' --custom-request-header 'X-Client-Geo-LatLong:{client_city_lat_long}' --custom-request-header 'X-Client-TLS-Version:{tls_version}' --custom-request-header 'X-Client-TLS-Chiper:{tls_cipher_suite}' --custom-request-header 'X-Client-Hostname:{tls_sni_hostname}' --custom-request-header 'X-Client-RTT:{client_rtt_msec}'