[google-appengine] Re: Firebase Cloud functions express ip location

2019-05-28 Thread 'Sam (Google Cloud Support)' via Google App Engine
Hi, as already noted, 'fastly-client-ip' is the header to use. According to this Stackoverflow post [1], the Firebase Cloud Functions docs points to using 'fastly-client-ip' [2]. Google Cloud Platform is a different platform for Cloud Functions which runs in App Engine, see this Stackoverflow

Re: [google-appengine] Re: Firebase Cloud functions express ip location

2019-05-28 Thread Prashanth Acharya
Cancel On Tue, 28 May, 2019, 18:46 renaud hedde, wrote: > Ok, > > After read cloud function request['header'] > > x-forwarded-for, fastly-client-ip display my ipAdress, good ! > > I test my ip with https://ipinfo.io and my city display, good as well ! > > However google cloud functions > >

[google-appengine] Re: Firebase Cloud functions express ip location

2019-05-28 Thread renaud hedde
Ok, After read cloud function request['header'] x-forwarded-for, fastly-client-ip display my ipAdress, good ! I test my ip with https://ipinfo.io and my city display, good as well ! However google cloud functions X-AppEngine-Country is still US, bad :( I don't understand why google don't

[google-appengine] Re: Firebase Cloud functions express ip location

2019-05-27 Thread gjs
Hi, Try examining request headers eg header X-AppEngine-Country = AU header X-AppEngine-City = sydney Regards On Tuesday, May 28, 2019 at 3:00:30 AM UTC+10, renaud hedde wrote: > > Hi, > > I'm working on cloud function projet with nodejs express > > I'm trying to get the request user city