You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/website/javascript/custom-proxy.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,8 @@ A Segment Customer Success team member will respond that they have enabled this
47
47
These instructions refer to Amazon CloudFront, but apply more generally to other providers as well.
48
48
49
49
### CDN Proxy
50
-
51
-
1.First log in to the AWS console and navigate to CloudFront.
50
+
To set up your CDN Proxy:
51
+
1.Log in to the AWS console and navigate to CloudFront.
52
52
2. Click **Create Distribution**.
53
53
3. Configure the distribution settings. In the Origin section, update the following values:
54
54
-**Origin Domain Name**: `cdn.segment.com`
@@ -58,14 +58,21 @@ These instructions refer to Amazon CloudFront, but apply more generally to other
58
58
-**Allowed HTTP Methods**: `GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE`
59
59
5. In the Settings section, configure the following values:
60
60
-**Alternate domain name (CNAME)**: `analytics.<yourdomain>.com`
61
-
-**Custom SSL certificate**: Select an existing or select a new certificate to validate the authorization to use the **Alternate domain name (CNAME)** value. For more information, see Amazon's documentation [Requirements for using alternate domain names](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements){:target="_blank"}
61
+
-**Custom SSL certificate**: Select an existing or new certificate to validate the authorization to use the **Alternate domain name (CNAME)** value. For more information, see Amazon's documentation [Requirements for using alternate domain names](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements){:target="_blank"}.
62
62
6. Click **Create Distribution**.
63
63
64
-
Take note of the Domain Name, for use in the next step.
64
+
Take note of the Domain Name for use in the next step.
65
65
66
66
#### Add CNAME Record to DNS
67
67
68
-
Next, add a CNAME record for the Segment proxy to your organizations DNS settings. Use a name that makes it clear what you are using the subdomain for, for example `analytics.mysite.com`. Go to your domain registrar and add a new record to your DNS of type "CNAME".
68
+
To add a CNAME record for the Segment proxy to your organizations DNS settings:
69
+
1. Use a name that makes it clear what you are using the subdomain for, for example `analytics.mysite.com`.
70
+
2. Go to your domain registrar and add a new record to your DNS of type "CNAME".
71
+
3. Configure these values:
72
+
-**Name**: `<subdomain_name>.yourdomain.com`
73
+
-**Value**: The Domain Name value from CloudFront
74
+
4. Save your record. This might take some time to take effect, depending on your TTL settings.
75
+
5. Make a `curl` request to your domain to verify that the proxy works.
69
76
70
77
71
78
| Field | Value |
@@ -77,7 +84,7 @@ Save your record. This might take some time to take effect, depending on your TT
77
84
78
85
### Tracking API Proxy
79
86
80
-
Next, set up a proxy for the tracking API so that all calls proxy through your domain. In this step, set up a CloudFront distribution that's similar to the previous step, with the exception of the Origin Domain Name:
87
+
Set up a proxy for the tracking API so that all calls proxy through your domain. To do this, set up a CloudFront distribution that's similar to the one in the previous section, with the exception of the Origin Domain Name:
@@ -86,12 +93,17 @@ Next, set up a proxy for the tracking API so that all calls proxy through your d
86
93
87
94
#### Add CNAME Record to DNS
88
95
89
-
Next, add a CNAME record to your DNS settings. Go to your domain registrar and add a new record to your DNS of type "CNAME". This time use the CloudFront distribution for the tracking API proxy.
96
+
To add a CNAME record to your DNS settings:
97
+
1. Go to your domain registrar and add a new record to your DNS of type "CNAME". This time use the CloudFront distribution for the tracking API proxy.
98
+
2. Enter values for these fields:
99
+
-**Name**: `<subdomain_name>.yourdomain.com`
100
+
-**Value**: Tracking API CloudFront Distribution Domain Name
101
+
3. Save your record. This might take some time to take effect, depending on your TTL settings.
102
+
4. Run `curl` on your domain to check if the proxy is working correctly.
| Value |*Tracking API CloudFront Distribution Domain Name*|
95
108
96
109
97
-
Save your record. This might take some time to take effect, depending on your TTL settings. Try running `curl` on your domain to check if the proxy is working correctly.
0 commit comments