From e1baacecccff500d228ddabf84c96b56c0a5ec77 Mon Sep 17 00:00:00 2001 From: John Li Date: Wed, 4 Jan 2023 15:36:41 -0800 Subject: [PATCH] Update to have two templates --- coda.io.apexdomain.json | 37 +++++++++++++++++++++++++++++++++++++ coda.io.subdomain.json | 25 +++++++++++++++++++++++++ coda.io.website.json | 31 ------------------------------- 3 files changed, 62 insertions(+), 31 deletions(-) create mode 100644 coda.io.apexdomain.json create mode 100644 coda.io.subdomain.json delete mode 100644 coda.io.website.json diff --git a/coda.io.apexdomain.json b/coda.io.apexdomain.json new file mode 100644 index 00000000..ee22cf9d --- /dev/null +++ b/coda.io.apexdomain.json @@ -0,0 +1,37 @@ +{ + "providerId":"coda.io", + "providerName":"Coda", + "serviceId":"apexdomain", + "serviceName":"Coda Site", + "version": 1, + "syncPubKeyDomain" : "coda.io", + "logoUrl":"https://cdn.coda.io/icons/png/color/coda-192.png", + "description":"Allows serving Coda documents from your own domain (apex only).", + "variableDescription":"`ipAddress[1, 2, 3]` refers to the IP addresses of Coda's custom domain server. `docId` refers to the coda document. `environment` refers to the environment for Coda's custom domain server. `docId` refers to the coda document used for custom domain. `verification` refers to the TXT verification of doc ownership", + "records":[ + { + "type":"A", + "host":"@", + "pointsTo":"%ipAddress1", + "ttl":3600 + }, + { + "type":"A", + "host":"@", + "pointsTo":"%ipAddress2", + "ttl":3600 + }, + { + "type":"A", + "host":"@", + "pointsTo":"%ipAddress3", + "ttl":3600 + }, + { + "type": "TXT", + "host": "_coda", + "data": "%verification%", + "ttl":3600 + } + ] + } diff --git a/coda.io.subdomain.json b/coda.io.subdomain.json new file mode 100644 index 00000000..c06d7a30 --- /dev/null +++ b/coda.io.subdomain.json @@ -0,0 +1,25 @@ +{ + "providerId":"coda.io", + "providerName":"Coda", + "serviceId":"subdomain", + "serviceName":"Coda Site", + "version": 1, + "syncPubKeyDomain" : "coda.io", + "logoUrl":"https://cdn.coda.io/icons/png/color/coda-192.png", + "description":"Allows serving Coda documents from your own domain (subdomain only)", + "variableDescription":"`subdomain` refers to the subdomain that the user wishes to use (not just limited to 'www'). `environment` refers to the environment for Coda's custom domain server. `docId` refers to the coda document used for custom domain. `verification` refers to the TXT verification of doc ownership", + "records":[ + { + "type":"CNAME", + "host":"%subdomain%", + "pointsTo":"%environment%.coda.io", + "ttl":3600 + }, + { + "type": "TXT", + "host": "_coda.%subdomain%", + "data": "%verification%", + "ttl":3600 + } + ] + } diff --git a/coda.io.website.json b/coda.io.website.json deleted file mode 100644 index f1bb5ca4..00000000 --- a/coda.io.website.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "providerId":"coda.io", - "providerName":"Coda", - "serviceId":"website", - "serviceName":"Coda Site", - "version": 1, - "syncPubKeyDomain" : "coda.io", - "logoUrl":"https://cdn.coda.io/icons/png/color/coda-192.png", - "description":"Allows serving Coda documents from your own domain", - "variableDescription":"`host` refers to the subdomain that the user wishes to use (not just limited to 'www'). `subdomain` refers to the subdomain for Coda's custom domain server. `docId` refers to the coda document used for custom domain. `verification` refers to the TXT host for doc ownership verification, differs based on A or CNAME. `ipAddress` refers to the proper IP for an apex domain to point to.", - "records":[ - { - "type":"CNAME", - "host":"%host%", - "pointsTo":"%subdomain%.coda.io", - "ttl":3600 - }, - { - "type": "TXT", - "host": "%verification%", - "data": "Doc:%docId%", - "ttl":3600 - }, - { - "type": "A", - "host": "@", - "pointsTo": "%ipAddress", - "ttl":3600 - } - ] - }