Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.41 KB

JSON_TEMPLATE.md

File metadata and controls

54 lines (45 loc) · 1.41 KB

Template for json file under domains folder

Please follow the template given here or your pull request will not be accepted or merged.

IMPORTANT: Please name your JSON file the subdomain you wish to have. If your subdomain in the JSON file does not match the file name, your PR will NOT be merged. Also please do NOT have a comma after your email, as it will cause internal server errors. Please do not add any line breaks in your json.

To add define which record you want to add, add the type field to the json. Currently supported records: CNAME, A, TXT, MX

** For MX records, you do not need to put in priority, as it is preset in the system. ** For TXT records, put your contents into the url field

Template:

[
    {  
        "subdomain": "YOUR_SUBDOMAIN_HERE",  
        "url":  "YOUR_SITE_URL_HERE",
        "email": "YOUR_EMAIL_HERE",
        "type": "YOUR_TYPE_HERE"
    }
]

Example:

[
    {  
        "subdomain": "joabutt",  
        "url":  "joabutt.dev",
        "email": "me@joabutt.dev",
        "type": "CNAME"
    }
]

Add multiple records

[
  {
    "subdomain": "YOUR_SUBDOMAIN_HERE",
    "type": "TYPE_OF_THE_RECORD",
    "url": "URL_OR_VALUE_OF_THE_RECORD",
    "email": "EMAIL_OR_PREFERENCE"
  },
  {
    "subdomain": "YOUR_SUBDOMAIN_HERE",
    "type": "TYPE_OF_THE_SECOND_RECORD",
    "url": "URL_OR_VALUE_OF_THE_SECOND_RECORD",
    "email": "EMAIL_OR_PREFERENCE"
  }
]