mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 18:46:50 +07:00
drop ptr
drop ptr support
This commit is contained in:
commit
276b8e9659
3 changed files with 10 additions and 62 deletions
35
README.md
35
README.md
|
|
@ -3,40 +3,9 @@
|
|||
</p>
|
||||
<h1 align="center">part-of.my.id</h1>
|
||||
|
||||
> [!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).
|
||||
|
||||
<a href="https://discord.gg/rFyRF3MMhc"><img alt="Discord Server" src="https://invidget.switchblade.xyz/rFyRF3MMhc"></a>
|
||||
|
||||
## 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.*
|
||||
|
|
|
|||
16
dnsconfig.js
16
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) {
|
||||
|
|
|
|||
21
schema.json
21
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": [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue