Can I set my Netlify server location?

I’ve just deployed some serverless functions for a Bet Trading app. Everything is fine as it was in development, but I’m getting an error from the trading API regarding the location. It restricts access to only a few locations such as UK, Portugal, Australia, Italy. So I think the serverless functions that reside in the Netlify server must be from a location outside of these regions.

Is there a way to update the server location to a chosen location? Is that a premium feature? It’s important that I am able to do this otherwise I won’t be able to use the service and will probably have to switch to AWS Lambda. I was planning to scale up in the near future - I’m just getting off the ground now though.

I know it is a problem with location as the error code states this:

the account is accessed from a location where betting is restricted

Hi, @mindful,

The title is slightly misleading. Netlify servers is not equal to the serverless functions’ locations. Just to clarify, you cannot select the location of the website (this is what is served by Netlify). However, when on a paid plan, you can request a location update for the serverless functions.

We only allow the following locations:

us-east-1
us-east-2
us-west-1
us-west-2
eu-central-1
ap-southeast-1

As to where each of those server is, you can find it here:

1 Like

Ok that’s great. Is this option to set the location available for the pro plan? If not, is it available in the business/ enterprise?

Hi @mindful,

A pro subscription is enough for this to be set, but from the looks, it seems like none of the locations we have are supported for your use case.

I thought eu-central-1 would be fine, but it seems Europe (Frankfurt) may not be enough, as it may need to be in my location Europe (London), sadly.

Yes, it seems so. Probably Netlify might not be the right service for your case then.

@hrishikesh Could you clarify where we can request the location update for the serverless functions?

These are the list of locations AWS supports:

Out of which, we support the following:

us-east-1
us-east-2
us-west-1
us-west-2
eu-central-1
ap-southeast-1

@hrishikesh I understand the data center locations you support, as they were listed already above.

Could you clarify where we can set the data center for the site’s functions at the Netlify user interface? I do not find any options for this in the Functions → Settings section.

(I am on a Pro plan)

That we can change from our end, it’s not available in the UI. Which one would you like to set it to and for which website?

eu-central-1 would be preferred for us.

Sure, which site is that for?

@hrishikesh Could I sent the information privately somehow?

Apparently private messaging is disabled for this forum.

Done, it’s enabled now. You can send me a PM.

The region has been changed for both the websites. A re-deploy would be needed.

Thanks a lot @hrishikesh !

I’ve issued a redeploy.

@hrishikesh Would it be possible to see / show the data region somewhere, so that we could show e.g. auditors where the data is processed?

I don’t know where we can get this information per site / per account?

E.g. if the site’s functions page showed the data center location, it would be really useful. Or if it was possible to set by the user through the functions settings, this would be also useful to get information about the data center location.

Yes, it’s visible via the API:

image

You can get it here:

https://api.netlify.com/api/v1/sites/<site-id>

Netlify API docs:

1 Like

Are there any plans to add in a section to manage/view the server location of deployed sites? This is such a basic feature of any legitimate hosting platform, so there’s no reason users should have to go through support just to access that information.

we would love that, @dben89x ! we have an open feature request to make this possible and i’ve added your comment. It would make work much easier for both customers and support staff, I agree.

1 Like