Accessing your Cloudant database through CIS
Follow these steps to access your Cloudant database through IBM Cloud® Internet Services (CIS).
Before you begin
These instructions assume that you already added a domain to CIS as outlined in the Getting started page.
Step 1: Add your CIS domain to the Cross-Origin Resource Sharing (CORS)
- Navigate to your Cloudant database and open the Account > CORS page.
- Add your CIS domain to the origin domains input field. For example,
https://cloudant.test.foo.com
.
Step 2. Configure CIS to point to your Cloudant database
- Navigate to the CIS dashboard and create a load balancer or DNS record that points to your Cloudant database hostname. For example,
https://cloudant.test.foo.com
->111-222-333-444-555-test.cloudant.com
. - Enable
proxy
for the DNS record or load balancer.
Step 3. Create a page rule to set the Host Header Override
- In the CIS dashboard, navigate to Performance > Page rules.
- Create a page rule for the URL that you want, for example,
https://cloudant.test.foo.com/*
. - Select the Rule Behavior setting
Host Header Override
. - Set as the Cloudant database hostname, for example,
111-222-333-444-555-test.cloudant.com
.
To learn more about Cloudant, see the Cloudant documentation.