diff --git a/README.md b/README.md index 080f408..45b8074 100644 --- a/README.md +++ b/README.md @@ -3,40 +3,9 @@

part-of.my.id

-> [!WARNING] -> Project is in ALPHA. Bugs and big changes to registration format are expected. +> [!NOTE] +> Documentation is all on our website [here](https://part-of.my.id/docs#structure). Discord Server -## registration -1. **Star** and **[Fork](https://github.com/partofmyid/register/fork)** this repository. -2. Add a new file called `your-name.json` in the `/domains` folder to register `your-name.part-of.my.id` subdomain (replace `your-name` with whatever subdomain you want). -3. Edit the file (below is just an **example**, provide a **valid** JSON file with your needs, the format is very strict.) - -```json -{ - "description": "Project Description (optional)", - "owner": { - "username": "github-username" - }, - "record": { - "A": ["1.1.1.1", "1.0.0.1"], - "AAAA": ["::1", "::2"], - "CNAME": "example.com", - "MX": ["mx1.example.com", "mx2.example.com"], - "TXT": ["example_verification=1234567890"], - "SRV": [ - { "priority": 10, "weight": 60, "port": 5060, "target": "sipserver.example.com" }, - { "priority": 20, "weight": 10, "port": 5061, "target": "sipbackup.example.com" } - ] - }, - "proxied": false -} - -``` - -4. Your pull request will be reviewed and merged. Please don't ignore the pull request checklist. If you ignore the checklist, your pull request will be ignored too. _Make sure to keep an eye on it in case we need you to make any changes!_ -5. After the pull request is merged, please allow up to 24 hours for the changes to propagate _(usually, it takes 5..15 minutes)_ -6. Enjoy your new domain! - *Domains used for illegal purposes will be removed and permanently banned. Please, provide a clear description of your resource in the pull request.* diff --git a/dnsconfig.js b/dnsconfig.js index d308c55..a83ff21 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -89,14 +89,14 @@ for (var idx in domains) { // } // } - if ('SRV' in domainData.record) { - for (var srv in domainData.record.SRV) { - var srvRecord = domainData.record.SRV[srv]; - commits.push( - SRV(subdomain, srvRecord.priority, srvRecord.weight, srvRecord.port, srvRecord.target + ".") - ); - } - } + // if ('SRV' in domainData.record) { + // for (var srv in domainData.record.SRV) { + // var srvRecord = domainData.record.SRV[srv]; + // commits.push( + // SRV(subdomain, srvRecord.priority, srvRecord.weight, srvRecord.port, srvRecord.target + ".") + // ); + // } + // } // if ('PTR' in domainData.record) { // for (var ptr in domainData.record.PTR) { diff --git a/schema.json b/schema.json index b5166a5..1cf3b4e 100644 --- a/schema.json +++ b/schema.json @@ -51,27 +51,6 @@ "items": { "type": "string" } - }, - "SRV": { - "type": "array", - "items": { - "type": "object", - "properties": { - "priority": { - "type": "integer" - }, - "weight": { - "type": "integer" - }, - "port": { - "type": "integer" - }, - "target": { - "type": "string" - } - }, - "required": ["priority", "weight", "port", "target"] - } } }, "required": [],