Regional Services for SaaS
By default, Cloudflare routes customer traffic through the closest data center. This maximizes speed regardless of geographic location. However, this can route traffic through a different country than where the request was made. You may want to maintain regional control over your data because of end-customer agreements. Cloudflare offers Regional Services for SaaS to give you the ability to accommodate regional restrictions while still using Cloudflare’s global edge network.
Prerequisites
Prior to enabling Regional Services for SaaS:
Ensure you have access to Cloudflare for SaaS.
If you have 10 or more unique origins, ensure your fallback origin is set up.
Ensure that Always Use HTTPS is enabled.
You must have access to a custom origin. Using Cloudflare’s default fallback origin for Regional Services will lead to an error.
Step 1 - Create a Spectrum application
Log in to the Cloudflare dashboard and navigate to your account and website.
Select Spectrum.
If this is your first time using Spectrum, the Create an Application modal appears. Otherwise, select Create an Application.
Select HTTPS as the application type. Regional Services only works over HTTPS.
Under Domain, enter the domain that will use Spectrum. The domain associated here is where all custom hostnames are going to point.
Choose the appropriate type of IP addresses for your subdomain.
Under Edge Port, enter 443.
Under Origin, select Origin IP or DNS record. Enter your custom origin IP and port.
- Select Submit to finish the application.
Step 2 - Add custom hostnames to Spectrum Application
For 10 or more unique origins:
Navigate to SSL/TLS > Custom Hostnames.
If you are creating a new custom hostname, select Add Custom Hostname. Otherwise, select the custom hostname that you want to use and select Edit.
Point each custom hostname to the Spectrum app by selecting Custom origin server and inputting your origin.
If you are creating a new custom hostname, select Add Custom Hostname and follow the instructions to verify custom hostname. Otherwise, select Save.
Navigate to DNS.
Select Add Record and select CNAME from the Type dropdown.
Under Name, enter the custom hostname.
Under Target, enter your Spectrum app custom origin and select Save.
For less than 10 unique origins:
Navigate to DNS.
Select Add Record and select CNAME from the Type dropdown.
Under Name, enter your custom hostname.
Under Target, enter your Spectrum app custom origin and select Save.